diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php index dab3f84e5e..b2fff6e851 100644 --- a/src/wp-admin/edit-form-advanced.php +++ b/src/wp-admin/edit-form-advanced.php @@ -157,7 +157,8 @@ foreach ( get_object_taxonomies( $post ) as $tax_name ) { else $tax_meta_box_id = $tax_name . 'div'; - add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name ) ); + if ( false !== $taxonomy->meta_box_cb ) + add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name ) ); } if ( post_type_supports($post_type, 'page-attributes') ) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 4bf48a93d6..258f7924dc 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -289,8 +289,10 @@ function is_taxonomy_hierarchical($taxonomy) { * * If not set, the default is inherited from public. * - show_tagcloud - Whether to list the taxonomy in the Tag Cloud Widget. * * If not set, the default is inherited from show_ui. - * - meta_box_cb - Provide a callback function for the meta box display. Defaults to - * post_categories_meta_box for hierarchical taxonomies and post_tags_meta_box for non-hierarchical. + * - meta_box_cb - Provide a callback function for the meta box display. + * * If not set, defaults to post_categories_meta_box for hierarchical taxonomies + * and post_tags_meta_box for non-hierarchical. + * * If false, no meta box is shown. * - capabilities - Array of capabilities for this taxonomy. * * You can see accepted values in this function. * - rewrite - Triggers the handling of rewrites for this taxonomy. Defaults to true, using $taxonomy as slug.