[wp-trac] [WordPress Trac] #52620: Add `path` data to block stylesheets to allow improving their loading method
WordPress Trac
noreply at wordpress.org
Mon Dec 29 18:59:35 UTC 2025
#52620: Add `path` data to block stylesheets to allow improving their loading
method
-------------------------+--------------------------
Reporter: aristath | Owner: gziolo
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.8
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: performance
-------------------------+--------------------------
Comment (by westonruter):
In [changeset:"61416" 61416]:
{{{
#!CommitTicketReference repository="" revision="61416"
Script Loader: Warn when a registered style has invalid `path` data and
allow inlining empty stylesheets.
When a stylesheet is registered with a `path` that does not exist or which
is not readable, then a `_doing_it_wrong()` is now issued. Previously,
paths that did not exist were silently skipped; paths for empty styles
were also needlessly skipped, since `wp_filesize()` also returns `0` for
the failure case.
Developed in https://github.com/WordPress/wordpress-develop/pull/10653
Follow-up to [50836].
Props westonruter, jonsurrell, soyebsalar01.
See #52620.
Fixes #64447.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52620#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list