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/functions.php

    r45755 r46214  
    919919     */
    920920    function test_wp_json_encode_depth() {
    921         if ( version_compare( PHP_VERSION, '5.5', '<' ) ) {
    922             $this->markTestSkipped( 'json_encode() supports the $depth parameter in PHP 5.5+' );
    923         };
    924 
    925921        $data = array( array( array( 1, 2, 3 ) ) );
    926922        $json = wp_json_encode( $data, 0, 1 );
Note: See TracChangeset for help on using the changeset viewer.