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 authored Oct 29, 2024
1 parent c5f4345 commit 58c58d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 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 @@ -427,8 +425,7 @@ function Layout( {
showIconLabels: get( 'core', 'showIconLabels' ),
isDistractionFree: get( 'core', 'distractionFree' ),
showMetaBoxes:
! DESIGN_POST_TYPES.includes( currentPostType ) &&
( isRenderingPostOnly || isRenderingTemplateLocked ),
! DESIGN_POST_TYPES.includes( currentPostType ),
isWelcomeGuideVisible: isFeatureActive( 'welcomeGuide' ),
templateId:
supportsTemplateMode &&
Expand Down

0 comments on commit 58c58d0

Please sign in to comment.