Changeset 53784
- Timestamp:
- 07/27/2022 12:25:06 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/site-editor.php
r53441 r53784 7 7 */ 8 8 9 global $ post, $editor_styles;9 global $editor_styles; 10 10 11 11 /** WordPress Administration Bootstrap */ … … 121 121 wp_add_inline_script( 122 122 'wp-blocks', 123 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $post) ) ),123 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( isset( $editor_settings['blockCategories'] ) ? $editor_settings['blockCategories'] : array() ) ), 124 124 'after' 125 125 );
Note: See TracChangeset
for help on using the changeset viewer.