Make WordPress Core


Ignore:
Timestamp:
09/20/2019 10:01:36 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.

Props jrf.
Fixes #48074.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets/media-widget.php

    r45103 r46214  
    480480     */
    481481    function test_has_content() {
    482         if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
    483             $this->markTestSkipped( 'ReflectionMethod::setAccessible is only available for PHP 5.3+' );
    484             return;
    485         }
    486 
    487482        $attachment_id = self::factory()->attachment->create_object(
    488483            array(
Note: See TracChangeset for help on using the changeset viewer.