[wp-trac] [WordPress Trac] #34332: Change in `get_term()` return value with mismatched term ID and taxonomy
WordPress Trac
noreply at wordpress.org
Fri Oct 16 21:41:55 UTC 2015
#34332: Change in `get_term()` return value with mismatched term ID and taxonomy
--------------------------+---------------------------
Reporter: dlh | Owner: boonebgorges
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.4
Component: Taxonomy | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35227"]:
{{{
#!CommitTicketReference repository="" revision="35227"
Return `null` from `get_term()` on taxonomy mismatch.
[34997] caused `get_term()` to return an error object in the case when
`$taxonomy` did not match the taxonomy of the located term. This was an
inadvertant change from the previous behavior, when `get_term()` would
return
null in these cases.
Props dlh.
See #14162. Fixes #34332.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34332#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list