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

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 9 19:28:13 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
--------------------------+-------------------------------------------------
 In Wordpress 3, when I specify a a custom non hierarchy  taxonomy (like
 tags) the wrong labels are used. Works with with a hierarchy based one:

 function bugpress_taxonomy() {
         //taxonomies
         $labels = array(
                 'name' => _x( 'Assigned to', 'taxonomy general name' ),
                 'singular_name' => _x( 'Assigned to', 'taxonomy singular
 name' ),
                 'search_items' =>       __( 'Search Assignees' ),
                 'popular_items' => __( 'Popular Assignees' ),
                 'all_items' => __( 'All Assignees' ),
                 'parent_item' => null,
                 'parent_item_colon' => null,
                 'edit_item' => __( 'Edit Assignees' ),
                 'update_item' => __( 'Update Assignees' ),
                 'add_new_item' => __( 'Add New Assignee' ),
                 'new_item_name' => __( 'New Assignee Name' ),
         );

         register_taxonomy('assigned_to','ticket',array(
                 'hierarchical' => false,
                 'labels' => $labels,
                 'show_ui' => true,
                 'query_var' => true,
                 'rewrite' => array( 'slug' => 'assigned_to' ),
         ));
 }

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


More information about the wp-trac mailing list