[wp-trac] [WordPress Trac] #9293: Clarify the args passed into wp_update_term

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 6 16:48:32 GMT 2009


#9293: Clarify the args passed into wp_update_term
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:  ryan      
     Type:  enhancement    |      Status:  new       
 Priority:  low            |   Milestone:  Unassigned
Component:  Taxonomy       |     Version:            
 Severity:  normal         |    Keywords:  has-patch 
---------------------------+------------------------------------------------
 The args for wp_update_term are currently:

 ```wp_update_term( $term, $taxonomy, $args = array() )```

 The first argument is not actually the term, but the term ID. Clearer code
 might be:

 ```wp_update_term( $term_id, $taxonomy, $args = array() )```

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


More information about the wp-trac mailing list