[wp-trac] [WordPress Trac] #16469: Cannot pass in ID for get_term_link() if using custom taxonomy
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 02:45:32 UTC 2011
#16469: Cannot pass in ID for get_term_link() if using custom taxonomy
--------------------------+----------------------
Reporter: sparkweb | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Taxonomy | Version: 3.0.4
Severity: normal | Resolution: invalid
Keywords: close |
--------------------------+----------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
re-closing as invalid.
get_term_link expects either
* An int of the term_id
* A string which is the term slug (and a slug cannot contain a /)
* The entire $term object
Other API functions which return the int fields as strings can be fixed
elsewhere, Such as #17646
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16469#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list