Make WordPress Core

Ticket #21543: 21543.3.diff

File 21543.3.diff, 647 bytes (added by helen, 11 years ago)
  • src/wp-admin/edit-form-advanced.php

     
    157157        else
    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
    163164if ( post_type_supports($post_type, 'page-attributes') )