[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:22:45 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:
--------------------------+---------------------------
Changes (by boonebgorges):
* owner: (none) => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43313" 43313]:
{{{
#!CommitTicketReference repository="" revision="43313"
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].
Props dlh.
Fixes #44221.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44221#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list