[wp-trac] [WordPress Trac] #13805: Custom Taxonomy: Wrong Labels Wordpress 3

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 9 21:26:51 UTC 2010


#13805: Custom Taxonomy: Wrong Labels Wordpress 3
--------------------------+-------------------------------------------------
 Reporter:  barrycarlyon  |       Owner:                              
     Type:  defect (bug)  |      Status:  new                         
 Priority:  normal        |   Milestone:  3.0                         
Component:  Taxonomy      |     Version:  3.0                         
 Severity:  normal        |    Keywords:  wordpress3, taxonomy, labels
--------------------------+-------------------------------------------------

Comment(by westi):

 It's a bug in your registration code.

 You need this:
 {{{
         register_taxonomy('assigned_to','ticket',array(
                 'hierarchical' => false,
                 'labels' => $labels,
                 'show_ui' => true,
                 'query_var' => true,
                 'rewrite' => array( 'slug' => 'assigned_to' ),
                 'helps' => __('Separate assignees with commas.'),
                 'help_hint' => __('Add new assignee'),
                 'help_nojs' => __('Add or remove assignees'),
                 'help_cloud' => __('Choose from the most frequent
 assignees'),
         ));
 }}}

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


More information about the wp-trac mailing list