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/theme/customHeader.php

    r43571 r46214  
    127127        $this->assertEmpty( $html );
    128128
    129         // ReflectionMethod::setAccessible is only available in PHP 5.3+
    130         if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
    131             return;
    132         }
    133129        // The container should always be returned in the Customizer preview.
    134130        $this->_set_customize_previewing( true );
     
    227223
    228224    function test_header_script_is_enqueued_by_the_custom_header_markup_without_video_when_previewing_in_customizer() {
    229         if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
    230             $this->markTestSkipped( 'ReflectionMethod::setAccessible is only available in PHP 5.3+' );
    231             return;
    232         }
    233 
    234225        $this->_add_theme_support(
    235226            array(
Note: See TracChangeset for help on using the changeset viewer.