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

WordPress Trac noreply at wordpress.org
Mon May 27 18:47:15 UTC 2024


#61302: wp_style_loader_src() expects $_wp_admin_css_colors
----------------------------+-----------------------------
 Reporter:  crstauf         |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:
 Severity:  minor           |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 The function `wp_style_loader_src()` expects that `$_wp_admin_css_colors`
 should exist and be an array. This can create a PHP warning if the
 `colors` dependency is loaded or `style_loader_src` filter is used in a
 context where the global does not exist. Adding checks for the variable
 will prevent this warning.

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


More information about the wp-trac mailing list