Changeset 18089
- Timestamp:
- 06/01/2011 02:41:43 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/menu.php
r18084 r18089 215 215 } 216 216 217 // Remove the last menu item if it is a separator. 218 $last_menu_item = end( $menu ); 219 if ( 'wp-menu-separator' == $last_menu_item[ 4 ] ) 220 array_pop( $menu ); 221 reset( $menu ); 222 unset( $last_menu_item ); 223 217 224 if ( !user_can_access_admin_page() ) { 218 225 do_action('admin_page_access_denied'); -
trunk/wp-admin/menu.php
r18035 r18089 235 235 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group 236 236 237 $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator -last' );237 $menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' ); 238 238 239 239 // Back-compat for old top-levels
Note: See TracChangeset
for help on using the changeset viewer.