[wp-trac] [WordPress Trac] #14156: Option to use name, in additon to slug and id in get_term_link() function
WordPress Trac
noreply at wordpress.org
Wed Jul 1 02:57:35 UTC 2015
#14156: Option to use name, in additon to slug and id in get_term_link() function
-------------------------+---------------------------
Reporter: sudar | Owner: boonebgorges
Type: enhancement | Status: reopened
Priority: low | Milestone: 4.3
Component: Taxonomy | Version: 3.0
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-------------------------+---------------------------
Comment (by helen):
I'm leaning toward reverting this - I'm not completely sure in what
scenario you only have the term name available to you, and doing a
`get_term_by()` first yourself is more correct than mixing this into
`get_term_link()` IMO. I'd way rather get on a `WP_Term` object, see
#14162 for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14156#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list