Changeset 18810
- Timestamp:
- 09/29/2011 05:50:44 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-scripts.php
r18804 r18810 63 63 unset($data['l10n_print_after']); 64 64 } 65 $output = "var $name = " . json_encode( html_entity_decode($data, ENT_QUOTES, 'UTF-8')) . "; $after\n";65 $output = "var $name = " . json_encode($data) . "; $after\n"; 66 66 } else { 67 67 $data = $this->get_data( $handle, 'data' ); … … 71 71 72 72 foreach ( (array) $data as $name => $data ) { 73 $output = "var $name = " . json_encode( html_entity_decode($data, ENT_QUOTES, 'UTF-8')) . ";\n";73 $output = "var $name = " . json_encode($data) . ";\n"; 74 74 } 75 75 }
Note: See TracChangeset
for help on using the changeset viewer.