Don't hardcode post type. Props typeomedia. fixes #12067
git-svn-id: https://develop.svn.wordpress.org/trunk@12887 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3dac74e345
commit
8d029acd42
@ -103,7 +103,7 @@ foreach ( get_object_taxonomies($post_type) as $tax_name ) {
|
||||
if ( !is_taxonomy_hierarchical($tax_name) )
|
||||
add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', $post_type, 'side', 'core');
|
||||
else
|
||||
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 ));
|
||||
}
|
||||
|
||||
if ( post_type_supports($post_type, 'page-attributes') )
|
||||
|
Loading…
Reference in New Issue
Block a user