Make WordPress Core

Changeset 39582


Ignore:
Timestamp:
12/12/2016 07:59:10 AM (8 years ago)
Author:
dd32
Message:

De-Emphasise the minor (x.y.Z) version in readme.html by including only the major version for the 4.7 branch.

See #35554

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7/tests/phpunit/tests/external-http/basic.php

    r35172 r39582  
    88        $readme = file_get_contents( ABSPATH . 'readme.html' );
    99        preg_match( '#<br /> Version (.*)#', $readme, $matches );
    10         list( $version ) = explode( '-', $GLOBALS['wp_version'] );
     10        $version = (float) $GLOBALS['wp_version'];
    1111        $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );
    1212
Note: See TracChangeset for help on using the changeset viewer.