Automatically remove block patterns if one or more of the blocks has been unregistered using unregisterBlockType #23803
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Enhancement
A suggestion for improvement.
If a block has been unregistered with
unregisterBlockType()
, patterns that use that block still show up in the "Patterns" tab of the block inserter. It shows an error message on the preview as well as when adding that pattern.It would be great if patterns that include a block that has been unregistered were automatically unregistered themselves (with
register_block_pattern()
).Screenshots
Editor version
Additional Context
I have a plugin that replaces the default columns block with a much more powerful version. I unregister the built in
core/columns
block so I don't confuse users with multiple blocks with the same name.The text was updated successfully, but these errors were encountered: