Blocks using metadata.name on their registration trigger error on PublishPress-Blocks #1366
Labels
unconfirmed bug
This needs more testing. Can often be used when a member of the public posts.
Milestone
Expected Behavior
PublishPress-Blocks plugin should display blocks independently of their registration method as long as the registration method is available on the WordPress documentation for the used WordPress version.
Docs reference: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/
Current Behavior
npx @wordpress/create-block
or manually using themetadata.name
registration, PublishPress-Blocks throws an error on the console, doesn't display the block for permission management, making the custom block unavailable.metadata
registration is used instead ofmetadata.name
, PublishPress-Block doesn't throw an error and the block displays on the permision list.Steps to Reproduce (for bugs)
npx @wordpress/create-block
https://developer.wordpress.org/block-editor/reference-guides/packages/packages-create-block/Context
This issue blocks administrators from managing certain blocks depending on their registration method.
Your Environment
Multisite using WPVIP enterprise host.
The text was updated successfully, but these errors were encountered: