WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2019 10:01:36 PM (2 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/customize/nav-menus.php

    r43571 r46214  
    10841084
    10851085        // Add global namespace prefix to check #41488.
    1086         if ( version_compare( PHP_VERSION, '5.3', '>=' ) ) {
    1087             $original_args['fallback_cb'] = '\\' . $original_args['fallback_cb'];
    1088         }
     1086        $original_args['fallback_cb'] = '\\' . $original_args['fallback_cb'];
    10891087
    10901088        $args = $menus->filter_wp_nav_menu_args( $original_args );
Note: See TracChangeset for help on using the changeset viewer.