Changes between Version 1 and Version 2 of Ticket #29722, comment 2
- Timestamp:
- 09/22/2014 01:52:53 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29722, comment 2
v1 v2 4 4 + * @param mixed $l10n The data to pass through to json_encode(). 5 5 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. 7 8 }}} 8 9 … … 35 36 36 37 }}} 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:38 The 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: 38 39 {{{ 39 40 did_action( 'init' ) && $scripts->localize( 'quicktags', 'quicktagsL10n', array(