diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 50bd8109b6..7710ab3343 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2872,7 +2872,7 @@ function wp_json_encode( $data, $options = 0, $depth = 512 ) { } // Prepare the data for JSON serialization. - $data = _wp_json_prepare_data( $data ); + $args[0] = _wp_json_prepare_data( $data ); $json = @call_user_func_array( 'json_encode', $args );