Opened 9 years ago
Closed 9 years ago
#36932 closed defect (bug) (fixed)
`wp_get_object_terms()` checks wrong `$fields` values when priming termmeta cache
Reported by: | dlh | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
The $update_term_meta_cache
argument to wp_get_object_terms()
checks whether the $fields
parameter is 'all_with_object_ids'
or 'term_ids'
before priming the termmeta cache. However, $fields
accepts 'all_with_object_id'
(singular) and 'ids'
. The attached patch would update to the latter two strings.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Wow, there are like three bugs in this four lines of code - one of which you didn't catch in your patch :) Thanks for the ticket.