[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
Mon Mar 7 02:41:44 UTC 2011


#16469: Cannot pass in ID for get_term_link() if using custom taxonomy
-------------------------------+------------------------------
 Reporter:  sparkweb           |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  3.0.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by mikeschinkel):

 * cc: mikeschinkel@… (added)


Comment:

 +1. I have stumbled onto this problem where it fails when `$term->term_id
 = '1';` but not when `$term->term_id = 1;` and I spent considerable time
 debugging to figure out why. It would IMO be nice it the `term_id` was
 cast to `(int)` inside the function.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16469#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list