Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: InnerBlocks should only force the template on directly set lockings #16973
Currently, InnerBlocks forces the template when locking is all even if the locking is inherited.
This PR updates the InnerBlocks logic to only force the template if the locking all is directly set and not inherited. In cases, the locking all is inherited it should be the template of the parent managing the inner blocks.
How has this been tested?
I pasted the following code in functions.php:
I created a new Locked All Post and I verified the InnerBlocks set for media-text and cover appear as expected.
Props to @oxyc for bringing this issue for our attention and proposing an initial fix for the media text-specific case.
noahtallen left a comment
During our work with Header/Footers with FSE, we experienced a bug (Automattic/wp-calypso#35429) related to adding a Cover block inside the header. When rendering the block in the page editor (inside
I found this PR and ran it in Gutenberg / FSE test environment and it resolves the bug!