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

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 4 06:51:38 UTC 2010


#12482: Correction to wp_insert_term() documentation
--------------------------+-------------------------------------------------
 Reporter:  prettyboymp   |       Owner:  filosofo 
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Taxonomy      |     Version:           
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------
Changes (by nacin):

  * owner:  nacin => filosofo
  * component:  Inline Docs => Taxonomy


Comment:

 This also reveals some dead code in there:

 {{{
 if ( is_int($term) && 0 == $term )
         return new WP_Error('invalid_term_id', __('Invalid term ID'));
 }}}

 That should be removed if the rest of the function doesn't support term
 IDs.

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


More information about the wp-trac mailing list