[wp-trac] [WordPress Trac] #12067: Categories and post_type with add_meta_box

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 28 14:53:55 UTC 2010


#12067: Categories and post_type with add_meta_box
--------------------------+-------------------------------------------------
 Reporter:  typeomedia    |       Owner:  filosofo    
     Type:  defect (bug)  |      Status:  new         
 Priority:  normal        |   Milestone:  3.0         
Component:  Taxonomy      |     Version:  3.0         
 Severity:  normal        |    Keywords:  dev-feedback
--------------------------+-------------------------------------------------
 When using post_type it is not possible to show the category box on the
 edit screen of this post_type because the add_meta_box for
 is_taxonomy_hierarchical is hard coded for 'post' instead of $post_type.

 /wp-admin/edit-form-advanced.php Line 106:

 {{{
 add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box',
 'post', 'side', 'core', array( 'taxonomy' => $tax_name ));
 }}}


 Fix:

 {{{
 add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box',
 $post_type, 'side', 'core', array( 'taxonomy' => $tax_name ));
 }}}

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


More information about the wp-trac mailing list