[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
Fri Apr 15 09:37:08 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:  close         |
--------------------------+------------------------------
Changes (by dd32):

 * keywords:   => close


Comment:

 > I must be missing something obvious. Why can't is_int() be changed to
 'is_numeric()` to solve this issue simply?

 As mentioned in above comments; Because the function accepts either an ID,
 or a Slug. A Slug may be numeric.

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


More information about the wp-trac mailing list