[wp-trac] [WordPress Trac] #17069: missing get_term_parents() function
WordPress Trac
noreply at wordpress.org
Tue Dec 13 02:56:34 UTC 2016
#17069: missing get_term_parents() function
--------------------------------------+---------------------------
Reporter: thomask | Owner: keesiemeijer
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.8
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------------
Changes (by boonebgorges):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"39593"]:
{{{
#!CommitTicketReference repository="" revision="39593"
Taxonomy: Use `get_term_link()` instead of `get_category_link()` in
`get_term_parents_list()`.
`get_category_link()` is a wrapper for `get_term_link()`. Using the
unwrapped function makes more sense semantically (it's taxonomy-
agnostic) and it's also more parsimonious (the `WP_Error` check in
`get_category_link()` is redundant with similar checks just before
in `get_term_link()`).
Props keesiemeijer.
Fixes #17069.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/17069#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list