[wp-trac] [WordPress Trac] #48529: Add fields to WP_Block_Type
WordPress Trac
noreply at wordpress.org
Wed May 13 09:48:14 UTC 2020
#48529: Add fields to WP_Block_Type
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner:
| spacedmonkey
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.5
Component: Editor | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch has-dev-note needs-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by gziolo):
Two more things:
Parent set as an empty array prevents the block from appearing in the
inserter, it should remain undefined:
https://developer.wordpress.org/block-editor/developers/block-api/block-
registration/#parent-optional
Example is an object in JavaScript, so here it probably should be an array
rather than boolean, it should be undefined by default:
https://developer.wordpress.org/block-editor/developers/block-api/block-
registration/#example-optional
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48529#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list