[wp-trac] [WordPress Trac] #36932: `wp_get_object_terms()` checks wrong `$fields` values when priming termmeta cache
WordPress Trac
noreply at wordpress.org
Tue May 24 14:13:32 UTC 2016
#36932: `wp_get_object_terms()` checks wrong `$fields` values when priming termmeta
cache
--------------------------+-----------------------------
Reporter: dlh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.4
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36932>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list