Image block shows toolbar button to "Add text over image" even when core/cover
block is nor registered
#32094
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
[Block] Image
Affects the Image Block
[Type] Bug
An existing feature does not function as intended
Description
The Core Image Block recently added an option to "Add text over image" which under the hood transforms the Image block to a Cover Block. This button still gets rendered in the Blocks Toolbar in cases where the Cover Block is not registered.
Instances where this can happen is when a site uses white / blacklisting.
Expected behaviour
When the Core Cover block is not registered the button should not show anymore.
Actual behaviour
When the Core Cover block is not registered the button does snow but doesn't do anything.
WordPress information
The text was updated successfully, but these errors were encountered: