[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
Tue Feb 8 04:45:08 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: Awaiting Review
Component: Taxonomy | Version: 3.0.4
Severity: normal | Resolution: invalid
Keywords: reporter-feedback |
-------------------------------+------------------------------
Changes (by sparkweb):
* status: new => closed
* version: => 3.0.4
* resolution: => invalid
Comment:
I was passing in $term->term_id. When I switched to (int)$term->term_id
that worked. As did $term->slug which is much better than $term->name.
Thank you and I'm sorry for the invalid ticket!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16469#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list