Skip to content

Error: The block "xxx" can have a maximum of 3 keywords. #11949

@elliotcondon

Description

@elliotcondon

Describe the bug
When registering a block type with more than 3 keywords, the following JS error is logged and the block type is not registered:

The block "xxx" can have a maximum of 3 keywords.

To Reproduce
Steps to reproduce the behavior:

  1. Create a basic block type with 4 keywords
  2. Check the console log

Expected behavior
The current behavior is too extreme.
The block type should be registered as normal, and WP should use the first 3 keywords ignoring any others if provided. There is also no need for a JS error, or even a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Feature] Block APIAPI that allows to express the block paradigm.[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions