WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2014 06:34:16 PM (6 years ago)
Author:
pento
Message:

Add wp_json_encode(), a wrapper for json_encode() that ensures everything is converted to UTF-8.

Change all core calls from json_encode() to wp_json_encode().

Fixes #28786.

File:
1 edited

Legend:

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

    r30040 r30055  
    19531953        //<![CDATA[
    19541954        (function($){
    1955             var options = <?php echo json_encode( $args ); ?>, setup;
     1955            var options = <?php echo wp_json_encode( $args ); ?>, setup;
    19561956
    19571957            if ( ! options )
Note: See TracChangeset for help on using the changeset viewer.