Opened 3 years ago
Closed 3 years ago
#55219 closed defect (bug) (fixed)
"current_theme_supports-{$feature}" filter doesn't run if no $args are passed
Reported by: | helgatheviking | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
Hello there, thanks for the repport!
The return was introduced here [12350] while there wasn't filter yet, then the filter come here [19682].
This can be milestone for consideration I think.