[wp-trac] [WordPress Trac] #32044: is_object_in_term() leaks DB queries

WordPress Trac noreply at wordpress.org
Thu Aug 18 19:14:55 UTC 2016


#32044: is_object_in_term() leaks DB queries
------------------------------------------+---------------------------
 Reporter:  joehoyle                      |       Owner:  boonebgorges
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  4.4
Component:  Taxonomy                      |     Version:  4.1.1
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"38277"]:
 {{{
 #!CommitTicketReference repository="" revision="38277"
 In `is_object_in_term()`, return error object rather than caching it.

 This change prevents an error object from being stored in the cache,
 and prevents notices from being thrown when plucking term IDs to put
 into the relationship cache.

 See #32044, #36814.

 Props rpayne7264.
 Fixes #37721.
 }}}

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


More information about the wp-trac mailing list