[wp-trac] [WordPress Trac] #56408: Blocks: Allow registering multiple items for all supported asset types
WordPress Trac
noreply at wordpress.org
Wed Sep 14 10:50:40 UTC 2022
#56408: Blocks: Allow registering multiple items for all supported asset types
-------------------------------------------------+-------------------------
Reporter: gziolo | Owner: gziolo
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback has-unit- | Focuses:
tests needs-dev-note |
-------------------------------------------------+-------------------------
Changes (by gziolo):
* owner: (none) => gziolo
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"54155" 54155]:
{{{
#!CommitTicketReference repository="" revision="54155"
Blocks: Allow registering multiple items for all supported asset types
Follow-up #54337, [52069]. Part of
https://github.com/WordPress/gutenberg/issues/41236. More details in
https://github.com/WordPress/gutenberg/issues/33542.
Allow passing more than one script per block for `editorScript`, `script`,
and `viewScript` fields in the `block.json` metadata file. This aligns
with the previously added changes for `style` and `editorStyle` fields.
This change impacts the `WP_Block_Type` class and the REST API endpoint
for block types. To ensure backward compatibiliy old names were soft
deprecated in favor of new fields that work with array values and have
`_handles` suffix.
Props zieladam, dlh, timothyblynjacobs, aristath, bernhard-reiter.
Fixes #56408.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56408#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list