[wp-trac] [WordPress Trac] #30749: get_term() is missing cache in some cases

WordPress Trac noreply at wordpress.org
Wed Dec 17 16:15:13 UTC 2014


#30749: get_term() is missing cache in some cases
--------------------------+------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Taxonomy      |     Version:
 Severity:  blocker       |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------
Changes (by boonebgorges):

 * keywords:   => has-patch


Comment:

 [attachment:30749.patch] fixes the issue. As I suspected, I missed
 something when cleaning up #21760 [30900] - `get_terms()` must update the
 cache for the term objects that it locates. I've added a unit test to make
 sure this doesn't happen again.

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


More information about the wp-trac mailing list