Make WordPress Core

Changeset 26489


Ignore:
Timestamp:
12/01/2013 12:26:07 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Make sure the version extracted from readme.html does not include a newline.

fixes #26344.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/basic.php

    r26166 r26489  
    2727        preg_match( '#<br /> Version (.*)#', $readme, $matches );
    2828        list( $version ) = explode( '-', $GLOBALS['wp_version'] );
    29         $this->assertEquals( $version, $matches[1], "readme.html's version needs to be updated to $version." );
     29        $this->assertEquals( $version, trim( $matches[1] ), "readme.html's version needs to be updated to $version." );
    3030    }
    3131
Note: See TracChangeset for help on using the changeset viewer.