Make WordPress Core

Changeset 10566


Ignore:
Timestamp:
02/12/2009 10:05:32 PM (16 years ago)
Author:
azaozz
Message:

Custom taxonomies: fix menu for large number of taxonomies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r10557 r10566  
    3636    $i = 15;
    3737    foreach ( $wp_taxonomies as $tax ) {
    38         if ( 'category' == $tax->name || 'link_category' == $tax->name )
     38        if ( $tax->hierarchical || ! in_array('post', (array) $tax->object_type, true) )
    3939            continue;
    4040
     
    4343    }
    4444
    45     $submenu['edit.php'][20] = array( __('Categories'), 'manage_categories', 'categories.php' );
     45    $submenu['edit.php'][50] = array( __('Categories'), 'manage_categories', 'categories.php' );
    4646
    4747$menu[10] = array( __('Media'), 'upload_files', 'upload.php', '', 'menu-top', 'menu-media', 'div' );
Note: See TracChangeset for help on using the changeset viewer.