[wp-trac] [WordPress Trac] #61302: wp_style_loader_src() expects $_wp_admin_css_colors

WordPress Trac noreply at wordpress.org
Tue Dec 16 23:37:04 UTC 2025


#61302: wp_style_loader_src() expects $_wp_admin_css_colors
----------------------------+-----------------------------
 Reporter:  crstauf         |       Owner:  SergeyBiryukov
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  7.0
Component:  Bootstrap/Load  |     Version:
 Severity:  minor           |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61388" 61388]:
 {{{
 #!CommitTicketReference repository="" revision="61388"
 Script Loader: Check if `$_wp_admin_css_colors` is set in
 `wp_style_loader_src()`.

 This aims to avoid PHP warnings if the `colors` dependency is loaded or
 the `style_loader_src` filter is used in a context where the
 `$_wp_admin_css_colors` global does not exist.

 Follow-up to [7976].

 Props crstauf, petitphp, SergeyBiryukov.
 Fixes #61302.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61302#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list