Make WordPress Core

Ticket #10773: menu.diff

File menu.diff, 536 bytes (added by batmoo, 16 years ago)

Patch

  • menu.php

     
    3636
    3737        $i = 15;
    3838        foreach ( $wp_taxonomies as $tax ) {
    39                 if ( $tax->hierarchical || ! in_array('post', (array) $tax->object_type, true) )
     39                if ( $tax->hierarchical || ! in_array('post', (array) $tax->object_type, true) || ! $tax->label )
    4040                        continue;
    4141
    4242                $submenu['edit.php'][$i] = array( esc_attr($tax->label), 'manage_categories', 'edit-tags.php?taxonomy=' . $tax->name );