[wp-trac] [WordPress Trac] #64447: Invalid path data for registered stylesheets silently fails in wp_maybe_inline_styles()
WordPress Trac
noreply at wordpress.org
Mon Dec 29 18:59:35 UTC 2025
#64447: Invalid path data for registered stylesheets silently fails in
wp_maybe_inline_styles()
--------------------------------------+-------------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 7.0
Component: Script Loader | Version: 5.8
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: css, performance
--------------------------------------+-------------------------------
Changes (by westonruter):
* status: assigned => closed
* resolution: => fixed
Comment:
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/64447#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list