diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index fd722195f9..006cb6cb7e 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2677,7 +2677,7 @@ function wp_json_encode( $data, $options = 0, $depth = 512 ) { $args = array( $data ); } - $json = call_user_func_array( 'json_encode', $args ); + $json = @call_user_func_array( 'json_encode', $args ); // If json_encode() was successful, no need to do more sanity checking. // ... unless we're in an old version of PHP, and json_encode() returned