Make WordPress Core

Changeset 37444


Ignore:
Timestamp:
05/17/2016 03:54:37 AM (8 years ago)
Author:
rmccue
Message:

REST API: Use prepared JSON data correctly.

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

Fixes #36358.
Props jrf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r37431 r37444  
    28732873
    28742874    // Prepare the data for JSON serialization.
    2875     $data = _wp_json_prepare_data( $data );
     2875    $args[0] = _wp_json_prepare_data( $data );
    28762876
    28772877    $json = @call_user_func_array( 'json_encode', $args );
Note: See TracChangeset for help on using the changeset viewer.