Skip to content

Commit

Permalink
fix remove rendering mode from showMetabox flag entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Oct 29, 2024
1 parent c5f4345 commit 352983e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,6 @@ function Layout( {
const { isZoomOut } = unlock( select( blockEditorStore ) );
const { getEditorMode, getRenderingMode } = select( editorStore );
const isRenderingPostOnly = getRenderingMode() === 'post-only';
const isRenderingTemplateLocked =
getRenderingMode() === 'template-locked';

return {
mode: getEditorMode(),
Expand All @@ -426,9 +424,7 @@ function Layout( {
!! select( blockEditorStore ).getBlockSelectionStart(),
showIconLabels: get( 'core', 'showIconLabels' ),
isDistractionFree: get( 'core', 'distractionFree' ),
showMetaBoxes:
! DESIGN_POST_TYPES.includes( currentPostType ) &&
( isRenderingPostOnly || isRenderingTemplateLocked ),
showMetaBoxes: ! DESIGN_POST_TYPES.includes( currentPostType ),
isWelcomeGuideVisible: isFeatureActive( 'welcomeGuide' ),
templateId:
supportsTemplateMode &&
Expand Down

0 comments on commit 352983e

Please sign in to comment.