[wp-trac] Re: [WordPress Trac] #9323: Legacy get_category_link function call in get_term_link function should probably use $term->ID or be removed

WordPress Trac wp-trac at lists.automattic.com
Tue May 5 07:13:56 GMT 2009


#9323: Legacy get_category_link function call in get_term_link function should
probably use $term->ID or be removed
--------------------------+-------------------------------------------------
 Reporter:  ev3rywh3re    |       Owner:  ryan                                                                            
     Type:  defect (bug)  |      Status:  new                                                                             
 Priority:  normal        |   Milestone:  2.8                                                                             
Component:  Taxonomy      |     Version:  2.8                                                                             
 Severity:  normal        |    Keywords:  get_the_term_list, get_term_link, get_category_link has-patch tested 2nd-opinion
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:5 Denis-de-Bernardy]:
 > I dunno how many plugins this'll break if any were relying on
 get_term_link($term) to work, but patch works.

 Just for fun I grepped through the plugins repository.  Of over 7000
 plugins, 3 call get_term_link() and only 1 of them, Custom Taxonomies,
 passes something other than a term id to the first argument.  If we can
 commit this, I'll be happy to send the author an email to let him know.

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


More information about the wp-trac mailing list