[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 22 21:05:03 UTC 2025


#64447: Invalid path data for registered stylesheets silently fails in
wp_maybe_inline_styles()
------------------------------+-------------------------
 Reporter:  westonruter       |      Owner:  westonruter
     Type:  defect (bug)      |     Status:  assigned
 Priority:  normal            |  Milestone:  7.0
Component:  Script Loader     |    Version:  5.8
 Severity:  normal            |   Keywords:
  Focuses:  css, performance  |
------------------------------+-------------------------
 Stylesheets may be [https://make.wordpress.org/core/2021/07/01/block-
 styles-loading-enhancements-in-
 wordpress-5-8/#:~:text=Inlining%20small%20assets inlined] when they have
 `path` data added which indicates where the stylesheet can be located on
 the filesystem. See [50836] for #52620. However, if the `path` is invalid
 then the inlining will silently fail as if the `path` wasn't provided in
 the first place. What is missing is `_doing_it_wrong()` to alert the
 developer that the `path` is incorrect. Otherwise, they may never discover
 there is an issue, and they may be confused why inlining isn't happening.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64447>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list