[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached

WordPress Trac noreply at wordpress.org
Fri Dec 2 06:59:04 UTC 2016


#21760: get_term_by() calls are not cached
-------------------------------------------------+-------------------------
 Reporter:  wonderboymusic                       |       Owner:  ocean90
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  4.7
Component:  Taxonomy                             |     Version:  2.3
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests commit                                   |  performance
-------------------------------------------------+-------------------------
Changes (by vnsavage):

 * status:  closed => reopened
 * type:  enhancement => defect (bug)
 * resolution:  fixed =>


Comment:

 @ocean90 - this change can lead to endless loop/stack exhaustion in
 existing plugins where a filter on get_terms() calls get_term_by() inside.
 An example of such usage is Jetpack's featured content.

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


More information about the wp-trac mailing list