Changeset 60681 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 08/27/2025 10:32:57 AM (4 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/script-loader.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r60522 r60681 160 160 'LLLL' => null, 161 161 ), 162 ) 162 ), 163 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 163 164 ) 164 165 ), … … 385 386 wp.data.dispatch( preferencesStore ).setPersistenceLayer( persistenceLayer ); 386 387 } ) ();', 387 wp_json_encode( $preload_data ),388 wp_json_encode( $preload_data, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ), 388 389 $user_id 389 390 ) … … 478 479 'abbr' => $timezone_abbr, 479 480 ), 480 ) 481 ), 482 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 481 483 ) 482 484 ), … … 641 643 $script = 'window.wpEditorL10n = { 642 644 tinymce: { 643 baseURL: ' . wp_json_encode( includes_url( 'js/tinymce' ) ) . ',645 baseURL: ' . wp_json_encode( includes_url( 'js/tinymce' ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ', 644 646 suffix: ' . ( SCRIPT_DEBUG ? '""' : '".min"' ) . ', 645 647 settings: ' . $init_obj . ', … … 1156 1158 'mejs.yiddish' => __( 'Yiddish' ), 1157 1159 ), 1158 ) 1160 ), 1161 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 1159 1162 ) 1160 1163 ), … … 2000 2003 'firstDay' => absint( get_option( 'start_of_week' ) ), 2001 2004 'isRTL' => $wp_locale->is_rtl(), 2002 ) 2005 ), 2006 JSON_HEX_TAG | JSON_UNESCAPED_SLASHES 2003 2007 ); 2004 2008 … … 2810 2814 ' wp.blocks.registerBlockStyle( \'%s\', %s );', 2811 2815 $block_name, 2812 wp_json_encode( $block_style )2816 wp_json_encode( $block_style, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) 2813 2817 ); 2814 2818 }
Note: See TracChangeset
for help on using the changeset viewer.