[wp-trac] [WordPress Trac] #53507: Block style version: replace filemtime with version from Block API metadata
WordPress Trac
noreply at wordpress.org
Fri Jun 25 15:51:39 UTC 2021
#53507: Block style version: replace filemtime with version from Block API metadata
----------------------------------------+------------------------------
Reporter: hellofromTonya | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 5.5
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+------------------------------
Comment (by desrosj):
The [https://developer.wordpress.org/block-editor/reference-guides/block-
api/block-metadata/#block-api Block API Metadata reference] does not list
`version` as a top level field, but it
[https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/blocks.php#L104 seems that an assumption is made that it is
included] because `register_block_script_handle()` is using the field in
the `wp_register_script()` call.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53507#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list