WordPress.org

Make WordPress Core

Changeset 9580


Ignore:
Timestamp:
11/09/2008 07:20:38 PM (10 years ago)
Author:
ryan
Message:

Sort the menu before adding classes. see #7966

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r9578 r9580  
    571571        $icon_url = 'images/menu/generic.png';
    572572
    573     $menu[$_wp_last_object_menu][4] = ''; // Remove menu-top-last
     573    //$menu[$_wp_last_object_menu][4] = ''; // Remove menu-top-last
    574574
    575575    $_wp_last_object_menu++;
    576576
    577     $menu[$_wp_last_object_menu] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top-last ' . $hookname, $hookname, $icon_url );
     577    $menu[$_wp_last_object_menu] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
    578578
    579579    return $hookname;
  • trunk/wp-admin/menu.php

    r9578 r9580  
    221221}
    222222
     223uksort($menu, "strnatcasecmp"); // make it all pretty
     224
    223225$menu = add_menu_classes($menu);
    224 
    225 uksort($menu, "strnatcasecmp"); // make it all pretty
    226226
    227227if (! user_can_access_admin_page()) {
Note: See TracChangeset for help on using the changeset viewer.