[wp-trac] [WordPress Trac] #55219: "current_theme_supports-{$feature}" filter doesn't run if no $args are passed

WordPress Trac noreply at wordpress.org
Tue Feb 22 00:53:48 UTC 2022


#55219: "current_theme_supports-{$feature}" filter doesn't run if no $args are
passed
----------------------------+-----------------------------
 Reporter:  helgatheviking  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 If there are no args passed to `current_theme_supports()` then the
 function terminates early and you never reach the
 `current_theme_supports-{$feature}`


 See:
 https://github.com/WordPress/wordpress-develop/blob/5.9/src/wp-
 includes/theme.php#L3041-L3043

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


More information about the wp-trac mailing list