Opened 11 years ago
Closed 11 years ago
#34262 closed defect (bug) (fixed)
`get_the_terms()` should not cache `WP_Term` objects
| Reported by: | boonebgorges | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 35030: