WordPress.org

Make WordPress Core

Ticket #28033: patch

File patch, 686 bytes (added by rufein, 6 years ago)

patch to taxonomy.php

  • C:/Users/Gonzalez/

    old new function register_taxonomy( $taxonomy, $object_typ 
    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 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