[wp-trac] [WordPress Trac] #58525: Create util function for getting block assets uri
WordPress Trac
noreply at wordpress.org
Tue Jun 13 10:58:12 UTC 2023
#58525: Create util function for getting block assets uri
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.5
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
In the functions `register_block_script_handle` and
`register_block_style_handle`, there is a lot of repeated logic to the uri
for the js / css. This is a problem, as the logic is similar but not
exactly the same. Performance fixes are applied to styles and not scripts
etc. Create a util function, to stop repeated logic and to ensure that
logic remains in sync.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58525>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list