Skip to content

Commit

Permalink
Revert "Use contentOnly locking for pattern block, remove hard-coded …
Browse files Browse the repository at this point in the history
…block check in block inspector (#61227)"

This reverts commit 1351c67.
  • Loading branch information
talldan committed May 9, 2024
1 parent a661135 commit 883b012
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
blockType: _blockType,
topLevelLockedBlock:
getContentLockingParent( _selectedBlockClientId ) ||
( getTemplateLock( _selectedBlockClientId ) === 'contentOnly'
( getTemplateLock( _selectedBlockClientId ) === 'contentOnly' ||
_selectedBlockName === 'core/block'
? _selectedBlockClientId
: undefined ),
};
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function ReusableBlockEdit( {
} );

const innerBlocksProps = useInnerBlocksProps( blockProps, {
templateLock: 'contentOnly',
templateLock: 'all',
layout,
renderAppender: innerBlocks?.length
? undefined
Expand Down

0 comments on commit 883b012

Please sign in to comment.