[wp-trac] [WordPress Trac] #9193: get_terms() in wp_tag_cloud() didn't return a int

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 20 19:53:23 GMT 2009


#9193: get_terms() in wp_tag_cloud() didn't return a int
--------------------------+-------------------------------------------------
 Reporter:  alexrabe      |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new 
 Priority:  low           |   Milestone:  2.8 
Component:  Taxonomy      |     Version:  2.7 
 Severity:  normal        |    Keywords:      
--------------------------+-------------------------------------------------
 I took me a while, and I hope my analyse is correct. I try to use
 wp_tag_cloud() for my own taxonomy, but I'm not able to get a vaild term
 link. In get_term_link() i found that it look for a int|string|object. The
 term->id must be a int, but get_terms() in wp_tag_cloud() return a string
 array, so it's not possible to get the correct link.

 Attched patch change the check from is_int -> is_numeric

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9193>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list