[wp-trac] [WordPress Trac] #65039: _doing_it_wrong messages in WP_Block_Type_Registry::register() lack context
WordPress Trac
noreply at wordpress.org
Wed Apr 8 14:21:56 UTC 2026
#65039: _doing_it_wrong messages in WP_Block_Type_Registry::register() lack context
--------------------------+-----------------------------
Reporter: benjgrolleau | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
WP_Block_Type_Registry::register() has four _doing_it_wrong() calls for
invalid block names. Three of them don't say which name caused the error.
Example: you get "Block type names must not contain uppercase characters."
with no way to tell which block it's about.
The fourth message ("Block type "%s" is already registered.") already
includes the name. The other three should do the same to improve
developper experience.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65039>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list