[wp-trac] [WordPress Trac] #35462: update_term_cache and deleting object_id

WordPress Trac noreply at wordpress.org
Wed Jan 20 05:34:32 UTC 2016


#35462: update_term_cache and deleting object_id
--------------------------+---------------------------
 Reporter:  berengerzyla  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4.2
Component:  Taxonomy      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  fixed-major   |     Focuses:
--------------------------+---------------------------
Changes (by dd32):

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


Comment:

 In [changeset:"36358"]:
 {{{
 #!CommitTicketReference repository="" revision="36358"
 Taxonomy: Populate term cache with proper clone of term objects.

 [34999] modified the cache strategy for terms in the context of
 `wp_get_object_terms()`. As part of these changes, the `object_id`
 property of
 term objects had to be unset before being cached. To avoid modifying
 passed-by-
 reference terms, `update_term_cache()` attempted to make a copy of the
 terms
 passed to the function; however, it failed to use the `clone` keyword, and
 thus
 only created a reference instead of a copy.

 Merges [36323] to the 4.4 branch.
 Props berengerzyla.
 Fixes #35462.
 }}}

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


More information about the wp-trac mailing list