Ticket #25280: 2580.3.patch
File 2580.3.patch, 584 bytes (added by , 11 years ago) |
---|
-
wp-includes/class.wp-scripts.php
161 161 } 162 162 163 163 foreach ( (array) $l10n as $key => $value ) { 164 if ( !is_s calar($value) )164 if ( !is_string($value) ) 165 165 continue; 166 166 167 $l10n[$key] = html_entity_decode( (string)$value, ENT_QUOTES, 'UTF-8');167 $l10n[$key] = html_entity_decode( $value, ENT_QUOTES, 'UTF-8'); 168 168 } 169 169 170 170 $script = "var $object_name = " . json_encode($l10n) . ';';