Changeset 18804 for trunk/wp-includes/class.wp-scripts.php
- Timestamp:
- 09/29/2011 12:34:24 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class.wp-scripts.php
r18498 r18804 63 63 unset($data['l10n_print_after']); 64 64 } 65 $output = "var $name = " . json_encode( $data) . "; $after\n";65 $output = "var $name = " . json_encode( html_entity_decode($data, ENT_QUOTES, 'UTF-8') ) . "; $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( $data) . ";\n";73 $output = "var $name = " . json_encode( html_entity_decode($data, ENT_QUOTES, 'UTF-8') ) . ";\n"; 74 74 } 75 75 }
Note: See TracChangeset
for help on using the changeset viewer.