diff --git a/packages/edit-site/src/components/editor/index.js b/packages/edit-site/src/components/editor/index.js index 629db894c18607..434554bbda7e82 100644 --- a/packages/edit-site/src/components/editor/index.js +++ b/packages/edit-site/src/components/editor/index.js @@ -67,6 +67,7 @@ export default function Editor() { isInserterOpen, isListViewOpen, showIconLabels, + showBlockBreadcrumbs, } = useSelect( ( select ) => { const { getEditedPostContext, @@ -94,6 +95,10 @@ export default function Editor() { 'core/edit-site', 'showIconLabels' ), + showBlockBreadcrumbs: select( preferencesStore ).get( + 'core/edit-site', + 'showBlockBreadcrumbs' + ), }; }, [] ); const { setEditedPostContext } = useDispatch( editSiteStore ); @@ -101,8 +106,11 @@ export default function Editor() { const isViewMode = canvasMode === 'view'; const isEditMode = canvasMode === 'edit'; const showVisualEditor = isViewMode || editorMode === 'visual'; - const showBlockBreakcrumb = - isEditMode && showVisualEditor && blockEditorMode !== 'zoom-out'; + const shouldShowBlockBreakcrumbs = + showBlockBreadcrumbs && + isEditMode && + showVisualEditor && + blockEditorMode !== 'zoom-out'; const shouldShowInserter = isEditMode && showVisualEditor && isInserterOpen; const shouldShowListView = isEditMode && showVisualEditor && isListViewOpen; const secondarySidebarLabel = isListViewOpen @@ -205,7 +213,7 @@ export default function Editor() { ) } footer={ - showBlockBreakcrumb && ( + shouldShowBlockBreakcrumbs && ( diff --git a/packages/edit-site/src/components/preferences-modal/index.js b/packages/edit-site/src/components/preferences-modal/index.js index b022824570e677..1f2db8d221a2df 100644 --- a/packages/edit-site/src/components/preferences-modal/index.js +++ b/packages/edit-site/src/components/preferences-modal/index.js @@ -48,6 +48,13 @@ export default function EditSitePreferencesModal( { ) } label={ __( 'Always open list view' ) } /> + ), }, diff --git a/packages/edit-site/src/index.js b/packages/edit-site/src/index.js index d920b02e562ec6..264288b5ec6277 100644 --- a/packages/edit-site/src/index.js +++ b/packages/edit-site/src/index.js @@ -67,6 +67,7 @@ export function initializeEditor( id, settings ) { welcomeGuide: true, welcomeGuideStyles: true, showListViewByDefault: false, + showBlockBreadcrumbs: true, } ); dispatch( interfaceStore ).setDefaultComplementaryArea(