[wp-trac] [WordPress Trac] #31086: Uniform results for getting terms
WordPress Trac
noreply at wordpress.org
Wed Jan 28 20:42:27 UTC 2015
#31086: Uniform results for getting terms
------------------------------------+---------------------------
Reporter: joshlevinson | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.2
Component: Taxonomy | Version: trunk
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31287"]:
{{{
#!CommitTicketReference repository="" revision="31287"
Don't use term IDs for array indexes when caching object terms.
Uncached results pulled from `wp_get_object_terms()` are zero-indexed (ie
0,
1, 2...). As a result, `get_the_terms()` was returning a strictly
different
array when pulling from the cache and when the cache was empty.
Props joshlevinson.
Fixes #31086.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31086#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list