[wp-trac] [WordPress Trac] #12482: Correction to wp_insert_term() documentation

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 2 19:45:26 UTC 2010


#12482: Correction to wp_insert_term() documentation
--------------------------+-------------------------------------------------
 Reporter:  prettyboymp   |       Owner:           
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.1      
Component:  General       |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
 After tracing through the code to see if I actually could use the
 wp_insert_term() method to add an existing term in a new taxonomy by it's
 id, I found that the method's documentation for its $term was incorrect in
 accepting an INT value for the $term parameter.  It is cast as a string
 within the function so a term_id can't be passed in for this param as one
 would suspect given the docs.

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


More information about the wp-trac mailing list