From 2c6d998b911da4ee5935ce75b5a871452a5099f0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 29 Sep 2011 05:50:44 +0000 Subject: [PATCH] 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 --- wp-includes/class.wp-scripts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index 42c40e7181..bec49c4532 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -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"; } }