diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php
index 1ceb51d..2076be8 100644
a
|
b
|
class WP_Scripts extends WP_Dependencies { |
160 | 160 | unset($l10n['l10n_print_after']); |
161 | 161 | } |
162 | 162 | |
163 | | foreach ( (array) $l10n as $key => $value ) { |
164 | | if ( !is_scalar($value) ) |
165 | | continue; |
| 163 | if( is_array($l10n) ) { |
| 164 | foreach ( $l10n as $key => $value ) { |
| 165 | if ( !is_string($value) ) |
| 166 | continue; |
166 | 167 | |
167 | | $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8'); |
| 168 | $l10n[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8'); |
| 169 | } |
| 170 | } else if( is_string($l10n) ) { |
| 171 | $l10n = html_entity_decode( $l10n, ENT_QUOTES, 'UTF-8'); |
168 | 172 | } |
169 | 173 | |
170 | 174 | $script = "var $object_name = " . json_encode($l10n) . ';'; |