diff --git a/wp-admin/widgets-form-blocks.php b/wp-admin/widgets-form-blocks.php index 7f3b6b2f65..95908e1e9e 100644 --- a/wp-admin/widgets-form-blocks.php +++ b/wp-admin/widgets-form-blocks.php @@ -52,7 +52,7 @@ wp_add_inline_script( wp_add_inline_script( 'wp-blocks', - sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( 'widgets-editor' ) ) ), + sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ), 'after' ); diff --git a/wp-includes/class-wp-customize-widgets.php b/wp-includes/class-wp-customize-widgets.php index 9df026d5b2..c96773b139 100644 --- a/wp-includes/class-wp-customize-widgets.php +++ b/wp-includes/class-wp-customize-widgets.php @@ -862,7 +862,7 @@ final class WP_Customize_Widgets { wp_add_inline_script( 'wp-blocks', - sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( 'widgets-customizer' ) ) ), + sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ), 'after' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 819534e9cf..b40af41078 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51699'; +$wp_version = '5.9-alpha-51700'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.