Changeset 51700
- Timestamp:
- 08/31/2021 01:37:31 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/widgets-form-blocks.php
r51202 r51700 53 53 wp_add_inline_script( 54 54 'wp-blocks', 55 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( 'widgets-editor') ) ),55 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ), 56 56 'after' 57 57 ); -
trunk/src/wp-includes/class-wp-customize-widgets.php
r51423 r51700 863 863 wp_add_inline_script( 864 864 'wp-blocks', 865 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( 'widgets-customizer') ) ),865 sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ), 866 866 'after' 867 867 );
Note: See TracChangeset
for help on using the changeset viewer.