[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 04:23:39 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:  has-patch     |
--------------------------+------------------------------
Changes (by garyc40):

 * keywords:   => has-patch


Comment:

 If you pass in a numeric string, `is_int()` still returns false, while
 `is_numeric()` returns true. So it's safer to use `is_numeric()` here.

 I also found that `is_int()` is used in several other functions. Should we
 look into those functions as well so that confusion like this won't happen
 again?

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


More information about the wp-trac mailing list