Changeset 60681 for trunk/src/wp-admin/widgets-form-blocks.php
- Timestamp:
- 08/27/2025 10:32:57 AM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/widgets-form-blocks.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/widgets-form-blocks.php
r59238 r60681 42 42 wp.editWidgets.initialize( "widgets-editor", %s ); 43 43 } );', 44 wp_json_encode( $editor_settings )44 wp_json_encode( $editor_settings, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) 45 45 ) 46 46 ); … … 49 49 wp_add_inline_script( 50 50 'wp-blocks', 51 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings() ) . ');'51 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings(), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) . ');' 52 52 ); 53 53 … … 63 63 ); 64 64 } 65 $script = sprintf( 'for ( const source of %s ) { wp.blocks.registerBlockBindingsSource( source ); }', wp_json_encode( $filtered_sources ) );65 $script = sprintf( 'for ( const source of %s ) { wp.blocks.registerBlockBindingsSource( source ); }', wp_json_encode( $filtered_sources, JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ); 66 66 wp_add_inline_script( 67 67 'wp-blocks', … … 72 72 wp_add_inline_script( 73 73 'wp-blocks', 74 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ),74 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ), JSON_HEX_TAG | JSON_UNESCAPED_SLASHES ) ), 75 75 'after' 76 76 );
Note: See TracChangeset
for help on using the changeset viewer.