Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #29722, comment 2


Ignore:
Timestamp:
09/22/2014 01:52:53 PM (11 years ago)
Author:
kitchin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29722, comment 2

    v1 v2  
    44+  * @param mixed $l10n         The data to pass through to json_encode().
    55                                If the data is a string, html entities are decoded.
    6                                 If the data is an array, first dimension string values are html decoded.
     6                                If the data is an array, first dimension scalar values
     7                                are converted to string and html decoded.
    78}}}
    89
     
    3536
    3637}}}
    37 The WP calls in script-loader.php are not affected because they all use arrays. One oddball uses a multidimensional array to protect an integer from getting made into a string by the intended old behavior (which would not happen anyway because of the bug). Another oddball wraps the array elements in esc_attr() which could be nixed:
     38The WP calls in script-loader.php are not affected because they all use arrays. One oddball uses a multidimensional array. Another oddball wraps the array elements in esc_attr() which could be nixed:
    3839{{{
    3940did_action( 'init' ) && $scripts->localize( 'quicktags', 'quicktagsL10n', array(