mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Revert [18804] until we have a proper solution. see #11520.
git-svn-id: https://develop.svn.wordpress.org/trunk@18810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cd0ad3ead4
commit
2c6d998b91
@ -62,7 +62,7 @@ class WP_Scripts extends WP_Dependencies {
|
||||
$after = $data['l10n_print_after'];
|
||||
unset($data['l10n_print_after']);
|
||||
}
|
||||
$output = "var $name = " . json_encode( html_entity_decode($data, ENT_QUOTES, 'UTF-8') ) . "; $after\n";
|
||||
$output = "var $name = " . json_encode($data) . "; $after\n";
|
||||
} else {
|
||||
$data = $this->get_data( $handle, 'data' );
|
||||
|
||||
@ -70,7 +70,7 @@ class WP_Scripts extends WP_Dependencies {
|
||||
return false;
|
||||
|
||||
foreach ( (array) $data as $name => $data ) {
|
||||
$output = "var $name = " . json_encode( html_entity_decode($data, ENT_QUOTES, 'UTF-8') ) . ";\n";
|
||||
$output = "var $name = " . json_encode($data) . ";\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user