[wp-trac] [WordPress Trac] #36814: get_the_terms() caches term count property
WordPress Trac
noreply at wordpress.org
Wed May 11 14:48:33 UTC 2016
#36814: get_the_terms() caches term count property
--------------------------+-------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.6
Component: Taxonomy | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-------------------------
Noticed this on w.org see attached screenshot.
Call stack is `get_the_tags( $id, 'post_tag' );` -> `get_the_terms( $id,
'post_tag' )`.
`get_the_terms()` caches the assigned terms which includes the count
property too. But it seems like the cache gets only refreshed on post
updates.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36814>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list