Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#56488 new enhancement

The current_theme_supports should have default args test

Reported by: pbearne's profile pbearne Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

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

Change History (1)

This ticket was mentioned in PR #3165 on WordPress/wordpress-develop by pbearne.


2 years ago
#1

  • Keywords has-patch has-unit-tests added
Note: See TracTickets for help on using tickets.