[wp-trac] [WordPress Trac] #37185: wp_print_styles() doesn't call "wp_print_styles" action when "$handles" argument passed

WordPress Trac noreply at wordpress.org
Tue Jun 10 16:56:04 UTC 2025


#37185: wp_print_styles() doesn't call "wp_print_styles" action when "$handles"
argument passed
-------------------------------------------------+-------------------------
 Reporter:  evgenniy                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Script Loader                        |     Version:  3.3.1
 Severity:  normal                               |  Resolution:  wontfix
 Keywords:  needs-unit-tests has-patch needs-    |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by westonruter):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 The inclusion of the `if` was done intentionally in [19649] to fix #19510.
 Removing the `if` will cause all kinds of back-compat breakage now.

 If an action is needed whenever `wp_print_styles()` is called regardless
 of whether the `$handles` arg is passed, then we'll need a new action to
 trigger separately.

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


More information about the wp-trac mailing list