REST API: Use prepared JSON data correctly.

This was modifying a variable that was never used. Oops.

Fixes #36358.
Props jrf.

Built from https://develop.svn.wordpress.org/trunk@37444


git-svn-id: http://core.svn.wordpress.org/trunk@37412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan McCue 2016-05-17 03:55:29 +00:00
parent 1cfeaada73
commit 691d445d68
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37443';
$wp_version = '4.6-alpha-37444';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.