You can no longer use unregisterBlockType() with core blocks #4699
Labels
[Feature] Blocks
Overall functionality of blocks
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Priority] High
Used to indicate top priority items that need quick attention
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Issue Overview
After the update to 2.1.0 the sample code to unregister core blocks taken from the Gutenberg handbook no longer works as expected.
https://wordpress.org/gutenberg/handbook/extensibility/#using-a-whitelist
It looks like the initial registering of the blocks has been moved in the following commit:
e694f6a
Can the docs be updated to reflect this change?
Steps to Reproduce (for bugs)
Expected Behavior
Expected behaviour would be for only the specified blocks to be available.
Current Behavior
All blocks available
The text was updated successfully, but these errors were encountered: