Skip to content

Commit 52e2cd9

Browse files
committed
Tests: Update regex to match PHP security releases in addition to stable releases.
PHP 8.3 changed from "Active support" to "Security fixes only" on January 1, 2026. Follow-up to [61421], [33937]. Props mukesh27, westonruter. See #33758. git-svn-id: https://develop.svn.wordpress.org/trunk@61422 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e11dcee commit 52e2cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/readme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function test_readme_php_version() {
2020

2121
$response_body = $this->get_response_body( 'https://www.php.net/supported-versions.php' );
2222

23-
preg_match_all( '#<tr class="stable">\s*<td>\s*<a [^>]*>\s*([0-9.]*)#s', $response_body, $php_matches );
23+
preg_match_all( '#<tr class="(?:stable|security)">\s*<td>\s*<a [^>]*>\s*([0-9.]*)#s', $response_body, $php_matches );
2424

2525
$this->assertContains( $matches[1], $php_matches[1], "readme.html's Recommended PHP version is too old. Remember to update the WordPress.org Requirements page, too." );
2626
}

0 commit comments

Comments
 (0)