Make WordPress Core


Ignore:
Timestamp:
10/27/2013 04:28:19 PM (11 years ago)
Author:
helen
Message:

Allow passing false for the meta_box_cb arg in register_taxonomy() to turn off the meta box display entirely. fixes #21543.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r25868 r25948  
    158158        $tax_meta_box_id = $tax_name . 'div';
    159159
    160     add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name ) );
     160    if ( false !== $taxonomy->meta_box_cb )
     161        add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name ) );
    161162}
    162163
Note: See TracChangeset for help on using the changeset viewer.