[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
Mon May 4 15:18:04 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
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  get_the_term_list, get_term_link, get_category_link has-
               patch => get_the_term_list, get_term_link,
               get_category_link has-patch tested 2nd-
               opinion


Comment:

 I dunno how many plugins this'll break if any were relying on
 get_term_link($term) to work, but patch works.

 An alternative approach would be to make get_tag_link and
 get_category_link work with terms too.

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


More information about the wp-trac mailing list