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/media.php

    r29776 r30055  
    18271827?>
    18281828var resize_height = <?php echo $large_size_h; ?>, resize_width = <?php echo $large_size_w; ?>,
    1829 wpUploaderInit = <?php echo json_encode($plupload_init); ?>;
     1829wpUploaderInit = <?php echo wp_json_encode( $plupload_init ); ?>;
    18301830</script>
    18311831
Note: See TracChangeset for help on using the changeset viewer.