[wp-trac] [WordPress Trac] #44221: `get_terms()` with `all_with_object_id` returns cached `stdClass` objects
WordPress Trac
noreply at wordpress.org
Fri May 25 01:25:57 UTC 2018
#44221: `get_terms()` with `all_with_object_id` returns cached `stdClass` objects
--------------------------+---------------------------
Reporter: dlh | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9.7
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+---------------------------
Comment (by boonebgorges):
In [changeset:"43314" 43314]:
{{{
#!CommitTicketReference repository="" revision="43314"
Taxonomy: Improve cache handling when querying for terms using
`all_with_object_id`.
When a term query using `fields=all_with_object_id` hits the cache, the
cached `stdClass` objects must be converted to `WP_Term` objects. This
was overlooked when `WP_Term_Query` was refactored to support object
queries in [38667].
Merges [43313] to the 4.9 branch.
Props dlh.
Fixes #44221.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44221#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list