Opened 9 years ago
Closed 9 years ago
#34262 closed defect (bug) (fixed)
`get_the_terms()` should not cache `WP_Term` objects
Reported by: | boonebgorges | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
In 35030: