[wp-trac] [WordPress Trac] #34262: `get_the_terms()` should not cache `WP_Term` objects

WordPress Trac noreply at wordpress.org
Mon Oct 12 13:19:38 UTC 2015


#34262: `get_the_terms()` should not cache `WP_Term` objects
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.4
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 `get_the_terms()` populates the object-term cache with the output of
 `wp_get_object_terms()`. After [34997], `wp_get_object_terms()` returns an
 array of `WP_Term` objects, which means that these objects are being
 cached. We shouldn't be doing this. `WP_Term` objects may have more data
 than ought to be stored in the cache.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34262>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list