[wp-trac] [WordPress Trac] #36932: `wp_get_object_terms()` checks wrong `$fields` values when priming termmeta cache

WordPress Trac noreply at wordpress.org
Wed May 25 18:44:03 UTC 2016


#36932: `wp_get_object_terms()` checks wrong `$fields` values when priming termmeta
cache
--------------------------+---------------------------
 Reporter:  dlh           |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.6
Component:  Taxonomy      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37567"]:
 {{{
 #!CommitTicketReference repository="" revision="37567"
 Fix termmeta pre-fetching in `wp_get_object_terms()`.

 [34529] introduced logic intended to prime the termmeta cache for certain
 values of the `fields` parameter. There were a few bugs:

 * The `all_with_object_id` param was misspelled.
 * `term_id` was used instead of `ids`.
 * The values being passed to `update_termmeta_cache()` in the case where
 `fields=ids` was not correct.

 All of these would result in a failure to pre-fetch termmeta in some
 cases.

 Props dlh.
 Fixes #36932.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36932#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list