More Taxonomy cap checks. See #12035

git-svn-id: https://develop.svn.wordpress.org/trunk@13217 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse
2010-02-19 10:26:44 +00:00
parent 7cdc6568d0
commit 897529ea59
3 changed files with 7 additions and 7 deletions
-3
View File
@@ -97,9 +97,6 @@ foreach ( get_object_taxonomies($post_type) as $tax_name ) {
$taxonomy = get_taxonomy($tax_name);
$label = isset($taxonomy->label) ? esc_attr($taxonomy->label) : $tax_name;
if ( !current_user_can($taxonomy->manage_cap) )
continue;
if ( !is_taxonomy_hierarchical($tax_name) )
add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', $post_type, 'side', 'core');
else