diff --git a/lib/experimental/editor-settings.php b/lib/experimental/editor-settings.php
index b0c05544d6b19..88b6c2ac783ef 100644
--- a/lib/experimental/editor-settings.php
+++ b/lib/experimental/editor-settings.php
@@ -83,8 +83,8 @@ function gutenberg_enable_experiments() {
if ( $gutenberg_experiments && array_key_exists( 'gutenberg-color-randomizer', $gutenberg_experiments ) ) {
wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableColorRandomizer = true', 'before' );
}
- if ( $gutenberg_experiments && array_key_exists( 'gutenberg-off-canvas-navigation-editor', $gutenberg_experiments ) ) {
- wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableOffCanvasNavigationEditor = true', 'before' );
+ if ( $gutenberg_experiments && array_key_exists( 'gutenberg-site-editor-navigation-menu-sidebar', $gutenberg_experiments ) ) {
+ wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableSiteEditorNavigationMenuSidebar = true', 'before' );
}
}
diff --git a/lib/experiments-page.php b/lib/experiments-page.php
index 09746caa559f2..14e589a6aee74 100644
--- a/lib/experiments-page.php
+++ b/lib/experiments-page.php
@@ -54,26 +54,26 @@ function gutenberg_initialize_experiments_settings() {
);
add_settings_field(
- 'gutenberg-off-canvas-navigation-editor',
- __( 'Off canvas navigation editor ', 'gutenberg' ),
+ 'gutenberg-color-randomizer',
+ __( 'Color randomizer ', 'gutenberg' ),
'gutenberg_display_experiment_field',
'gutenberg-experiments',
'gutenberg_experiments_section',
array(
- 'label' => __( 'Test a new "off canvas" editor for navigation block using the block inspector and a tree view of the current menu', 'gutenberg' ),
- 'id' => 'gutenberg-off-canvas-navigation-editor',
+ 'label' => __( 'Test the Global Styles color randomizer; a utility that lets you mix the current color palette pseudo-randomly.', 'gutenberg' ),
+ 'id' => 'gutenberg-color-randomizer',
)
);
add_settings_field(
- 'gutenberg-color-randomizer',
- __( 'Color randomizer ', 'gutenberg' ),
+ 'gutenberg-site-editor-navigation-menu-sidebar',
+ __( 'Global navigation menu sidebar ', 'gutenberg' ),
'gutenberg_display_experiment_field',
'gutenberg-experiments',
'gutenberg_experiments_section',
array(
- 'label' => __( 'Test the Global Styles color randomizer; a utility that lets you mix the current color palette pseudo-randomly.', 'gutenberg' ),
- 'id' => 'gutenberg-color-randomizer',
+ 'label' => __( 'Test a new global navigation menu sidebar in the site editor.', 'gutenberg' ),
+ 'id' => 'gutenberg-site-editor-navigation-menu-sidebar',
)
);
diff --git a/packages/block-editor/src/components/block-card/index.js b/packages/block-editor/src/components/block-card/index.js
index dab832861ae66..48f08f06f368c 100644
--- a/packages/block-editor/src/components/block-card/index.js
+++ b/packages/block-editor/src/components/block-card/index.js
@@ -27,9 +27,6 @@ function BlockCard( { title, icon, description, blockType, className } ) {
( { title, icon, description } = blockType );
}
- const isOffCanvasNavigationEditorEnabled =
- window?.__experimentalEnableOffCanvasNavigationEditor === true;
-
const { parentNavBlockClientId } = useSelect( ( select ) => {
const { getSelectedBlockClientId, getBlockParentsByBlockName } =
select( blockEditorStore );
@@ -49,7 +46,7 @@ function BlockCard( { title, icon, description, blockType, className } ) {
return (
- { isOffCanvasNavigationEditorEnabled && parentNavBlockClientId && (
+ { parentNavBlockClientId && ( // This is only used by the Navigation block for now. It's not ideal having Navigation block specific code here.