De-Emphasise the minor (x.y.Z) version in readme.html
by including only the major version for the 4.7 branch.
See #35554 git-svn-id: https://develop.svn.wordpress.org/branches/4.7@39582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
720311ae72
commit
46611f6153
@ -7,7 +7,7 @@ class Tests_External_HTTP_Basic extends WP_UnitTestCase {
|
||||
function test_readme() {
|
||||
$readme = file_get_contents( ABSPATH . 'readme.html' );
|
||||
preg_match( '#<br /> Version (.*)#', $readme, $matches );
|
||||
list( $version ) = explode( '-', $GLOBALS['wp_version'] );
|
||||
$version = (float) $GLOBALS['wp_version'];
|
||||
$this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );
|
||||
|
||||
preg_match( '#Recommendations.*PHP</a> version <strong>([0-9.]*)#s', $readme, $matches );
|
||||
|
Loading…
Reference in New Issue
Block a user