Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#12067 closed defect (bug) (fixed)

Categories and post_type with add_meta_box

Reported by: typeomedia Owned by: filosofo
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Taxonomy Keywords: dev-feedback
Focuses: Cc:


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 ));


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

Change History (1)

#1 @ryan
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12887]) Don't hardcode post type. Props typeomedia. fixes #12067

Note: See TracTickets for help on using tickets.