mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.
Props jrf. Fixes #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -918,10 +918,6 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
* @ticket 28786
|
||||
*/
|
||||
function test_wp_json_encode_depth() {
|
||||
if ( version_compare( PHP_VERSION, '5.5', '<' ) ) {
|
||||
$this->markTestSkipped( 'json_encode() supports the $depth parameter in PHP 5.5+' );
|
||||
};
|
||||
|
||||
$data = array( array( array( 1, 2, 3 ) ) );
|
||||
$json = wp_json_encode( $data, 0, 1 );
|
||||
$this->assertFalse( $json );
|
||||
|
||||
Reference in New Issue
Block a user