Opened 2 years ago
Closed 2 years ago
#45698 closed defect (bug) (fixed)
`get_{$taxonomy}` filter misfires when `$taxonomy` parameter is omitted
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
[34997] made the $taxonomy
parameter to get_term()
optional. However, when no $taxonomy
is passed, no $taxonomy
is available for the dynamic get_{$taxonomy}
filter, so the less-exciting get_
filter is applied instead. Additionally, no $taxonomy
is passed to the get_term
filter.
The attached patch would set $taxonomy
to that of the retrieved term before the get_term
and get_{$taxonomy}
filters are applied.
14162.3.patch:ticket:14162 on the original ticket includes the same adjustment, but it seems to have been missed, or I am missing something.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Thanks, @dlh. This was almost certainly an oversight when introducing
WP_Term
.