Block Template Warning Missing in 5.2 #15743
Labels
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Priority] High
Used to indicate top priority items that need quick attention
[Type] Bug
An existing feature does not function as intended
Milestone
Describe the bug
Prior to 5.2, a warning was displayed when a post's current blocks did not match the defined block template. The warning contained an option to reset the post to match the block template.
To reproduce
Steps to reproduce the behavior:
Expected behavior
A warning should be displayed, with an option for the user to reset the block template.
I know there was an issue where the warning would also display when the post type's block template contained a locked set of outer blocks, and unlocked set of inner blocks. If I had to choose one, I'd rather have an ever-present warning than no way to reset the block template.
I've attempted a work around using:
However this fails if
template_lock
is on. (Also, how shouldwp.data.dispatch( 'core/editor' ).synchronizeTemplate();
work?)The text was updated successfully, but these errors were encountered: