[wp-trac] [WordPress Trac] #56488: The current_theme_supports should have default args test

WordPress Trac noreply at wordpress.org
Thu Sep 1 15:11:33 UTC 2022


#56488: The current_theme_supports should have default args test
-------------------------+-----------------------------
 Reporter:  pbearne      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 You can pass a second arg to the current_theme_supports() function but if
 this is not in the switch if is not handled

 I believe we should make the simple in_array test the default test to that
 the current_theme_supports function can be used with extra args without
 have to change core code

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


More information about the wp-trac mailing list