Make WordPress Core

Changeset 18089


Ignore:
Timestamp:
06/01/2011 02:41:43 PM (14 years ago)
Author:
ryan
Message:

Use wp-menu-separator after Settings and before the first plugin top-level. Remove trailing separators. fixes #17629

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r18084 r18089  
    215215}
    216216
     217// Remove the last menu item if it is a separator.
     218$last_menu_item = end( $menu );
     219if ( 'wp-menu-separator' == $last_menu_item[ 4 ] )
     220    array_pop( $menu );
     221reset( $menu );
     222unset( $last_menu_item );
     223
    217224if ( !user_can_access_admin_page() ) {
    218225    do_action('admin_page_access_denied');
  • trunk/wp-admin/menu.php

    r18035 r18089  
    235235$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
    236236
    237 $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator-last' );
     237$menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' );
    238238
    239239// Back-compat for old top-levels
Note: See TracChangeset for help on using the changeset viewer.