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)" (#61517)

This reverts commit 1351c67.

Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: kevin940726 <kevin940726@git.wordpress.org>
  • Loading branch information
3 people committed May 10, 2024
1 parent b2d3dca commit d3e377f
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 d3e377f

Please sign in to comment.