Skip to content

Commit 9388a97

Browse files
obenlandmatticbot
andauthored
Update WP requirement to 6.5 (#1703)
Co-authored-by: Automattic Bot <[email protected]>
1 parent e4312d9 commit 9388a97

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: major
2+
Type: changed
3+
4+
Bumped minimum required WordPress version to 6.5.

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
2121
include:
2222
- wp-version: latest
23-
- wp-version: '6.4'
23+
- wp-version: '6.5'
2424
php-versions: '7.2'
2525
- wp-version: trunk
2626
php-versions: '8.4'

includes/compat.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,3 @@ function str_contains( $haystack, $needle ) {
9696
return false !== strpos( $haystack, $needle );
9797
}
9898
}
99-
100-
if ( ! function_exists( 'wp_is_serving_rest_request' ) ) {
101-
/**
102-
* Polyfill for `wp_is_serving_rest_request()` function added in WordPress 6.5.
103-
*
104-
* @see https://developer.wordpress.org/reference/functions/wp_is_serving_rest_request/
105-
*
106-
* @return bool True if it's a WordPress REST API request, false otherwise.
107-
*/
108-
function wp_is_serving_rest_request() {
109-
return defined( 'REST_REQUEST' ) && REST_REQUEST;
110-
}
111-
}

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<rule ref="PHPCompatibility"/>
1818
<config name="testVersion" value="7.2-"/>
1919
<rule ref="PHPCompatibilityWP"/>
20-
<config name="minimum_supported_wp_version" value="6.4"/>
20+
<config name="minimum_supported_wp_version" value="6.5"/>
2121

2222
<config name="text_domain" value="activitypub,default"/>
2323

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== ActivityPub ===
22
Contributors: automattic, pfefferle, mattwiebe, obenland, akirk, jeherve, mediaformat, nuriapena, cavalierlife, andremenrath
33
Tags: OStatus, fediverse, activitypub, activitystream
4-
Requires at least: 6.4
4+
Requires at least: 6.5
55
Tested up to: 6.8
66
Stable tag: 5.9.2
77
Requires PHP: 7.2

0 commit comments

Comments
 (0)