WordPress.org

Make WordPress Core

Ticket #28033: 28033.3.patch

File 28033.3.patch, 628 bytes (added by rufein, 6 years ago)
  • wp-includes/taxonomy.php

     
    410410        $args['label'] = $args['labels']->name;
    411411
    412412        // If not set, use the default meta box
    413         if ( null === $args['meta_box_cb'] ) {
     413        // Avoid the the wrong function if added manually
     414        if ( null === $args['meta_box_cb'] || $args['meta_box_cb'] == 'post_categories_meta_box' || $args['meta_box_cb'] == 'post_tags_meta_box' ) {
    414415                if ( $args['hierarchical'] )
    415416                        $args['meta_box_cb'] = 'post_categories_meta_box';
    416417                else