Skip to content

Commit

Permalink
Hide metaboxes in Zoom Out (WordPress#66886)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: getdave <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: draganescu <[email protected]>
Co-authored-by: ndiego <[email protected]>
Co-authored-by: arnaudbroes <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: stokesman <[email protected]>
  • Loading branch information
10 people authored Nov 13, 2024
1 parent 0098e9b commit 8d9b4f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,9 @@ function Layout( {
!! select( blockEditorStore ).getBlockSelectionStart(),
showIconLabels: get( 'core', 'showIconLabels' ),
isDistractionFree: get( 'core', 'distractionFree' ),
showMetaBoxes: ! DESIGN_POST_TYPES.includes( currentPostType ),
showMetaBoxes:
! DESIGN_POST_TYPES.includes( currentPostType ) &&
! isZoomOut(),
isWelcomeGuideVisible: isFeatureActive( 'welcomeGuide' ),
templateId:
supportsTemplateMode &&
Expand Down

0 comments on commit 8d9b4f4

Please sign in to comment.