[wp-trac] [WordPress Trac] #53233: Editor: Extend `register_block_type` to accept the path file or folder with `block.json`
WordPress Trac
noreply at wordpress.org
Wed May 19 13:50:24 UTC 2021
#53233: Editor: Extend `register_block_type` to accept the path file or folder with
`block.json`
-----------------------------------------------------+---------------------
Reporter: gziolo | Owner: gziolo
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.8
Component: Editor | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev-note | Focuses:
-----------------------------------------------------+---------------------
Changes (by gziolo):
* owner: (none) => gziolo
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"50927" 50927]:
{{{
#!CommitTicketReference repository="" revision="50927"
Editor: Extend `register_block_type` to accept the path file or folder
with `block.json`
Rather than using two distinct methods to register block types in
WordPress core, let's make `register_block_type` the canonical method to
deal with all use cases. In practice, the patch proposed extends its usage
to work as a proxy to `register_block_type_from_metadata`. It should
remove some confusion that we observed and let us be more explicit what's
the latest recommendation.
Props matveb, mcsf.
Fixes #53233.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53233#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list