Cover Image, Paragraph and Quote still appear next to the inserter even if they have been removed from the inserter via the allowed_block_types filter #3990
Labels
[Feature] Blocks
Overall functionality of blocks
[Feature] Extensibility
The ability to extend blocks or the editing experience
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Type] Bug
An existing feature does not function as intended
Issue Overview
In testing the
allowed_block_types
filter, it appears that the Cover Image, Paragraph and Quote blocks still appear next to the inserter when they have been removed from the inserter's list of allowed block types.Steps to Reproduce (for bugs)
functions.php
:[Safari/Chrome, macOS High Sierra, WordPress 4.9.1, Gutenberg 1.9.1]
Expected Behavior
The inserter should only show available block types next to it.
Current Behavior
The Cover Image, Paragraph and Quote blocks appear next to the inserter even if they have been removed as allowed block types. Note that when all block types are removed they still appear, even though the inserter itself is gone.
Possible Solution
If any one of the Cover Image, Paragraph or Quote blocks are removed from the inserter, the slots next to the inserter button should be filled with others (perhaps via the same mechanism that populates the Recent Blocks tab).
Screenshots / Video
With this filter in place:
With this filter in place:
Note that the insert button is absent.
Related Issues and/or PRs
#3968
#3988
Todos
The text was updated successfully, but these errors were encountered: