Changeset 60681 for trunk/src/wp-admin/theme-editor.php
- Timestamp:
- 08/27/2025 10:32:57 AM (5 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/theme-editor.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/theme-editor.php
r59884 r60681 147 147 ); 148 148 wp_enqueue_script( 'wp-theme-plugin-editor' ); 149 wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings ) ) );149 wp_add_inline_script( 'wp-theme-plugin-editor', sprintf( 'jQuery( function( $ ) { wp.themePluginEditor.init( $( "#template" ), %s ); } )', wp_json_encode( $settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ) ); 150 150 wp_add_inline_script( 'wp-theme-plugin-editor', 'wp.themePluginEditor.themeOrPlugin = "theme";' ); 151 151
Note: See TracChangeset
for help on using the changeset viewer.