WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/01/11 14:41:43 (7 years ago)
Author:
ryan
Message:

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

File:
1 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'); 
Note: See TracChangeset for help on using the changeset viewer.