diff --git a/.github/changelog/1703-from-description b/.github/changelog/1703-from-description new file mode 100644 index 000000000..a2622658a --- /dev/null +++ b/.github/changelog/1703-from-description @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +Bumped minimum required WordPress version to 6.5. diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 0759414bb..8d7918afd 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -20,7 +20,7 @@ jobs: php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] include: - wp-version: latest - - wp-version: '6.4' + - wp-version: '6.5' php-versions: '7.2' - wp-version: trunk php-versions: '8.4' diff --git a/includes/compat.php b/includes/compat.php index f0adcc3e7..bc394464f 100644 --- a/includes/compat.php +++ b/includes/compat.php @@ -96,16 +96,3 @@ function str_contains( $haystack, $needle ) { return false !== strpos( $haystack, $needle ); } } - -if ( ! function_exists( 'wp_is_serving_rest_request' ) ) { - /** - * Polyfill for `wp_is_serving_rest_request()` function added in WordPress 6.5. - * - * @see https://developer.wordpress.org/reference/functions/wp_is_serving_rest_request/ - * - * @return bool True if it's a WordPress REST API request, false otherwise. - */ - function wp_is_serving_rest_request() { - return defined( 'REST_REQUEST' ) && REST_REQUEST; - } -} diff --git a/phpcs.xml b/phpcs.xml index 2326eeb42..48e03d9f3 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -17,7 +17,7 @@ - + diff --git a/readme.txt b/readme.txt index 99eda447a..cbb95fbbd 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === ActivityPub === Contributors: automattic, pfefferle, mattwiebe, obenland, akirk, jeherve, mediaformat, nuriapena, cavalierlife, andremenrath Tags: OStatus, fediverse, activitypub, activitystream -Requires at least: 6.4 +Requires at least: 6.5 Tested up to: 6.8 Stable tag: 5.9.0 Requires PHP: 7.2