Changeset 19072 for trunk/wp-admin/includes/menu.php
- Timestamp:
- 10/27/2011 08:00:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/menu.php
r18997 r19072 216 216 217 217 // Remove the last menu item if it is a separator. 218 $last_menu_key = array_pop( $last_menu_key = array_keys( $menu ) ); 218 $last_menu_key = array_keys( $menu ); 219 $last_menu_key = array_pop( $last_menu_key ); 219 220 if ( !empty( $menu ) && 'wp-menu-separator' == $menu[ $last_menu_key ][ 4 ] ) 220 221 unset( $menu[ $last_menu_key ] );
Note: See TracChangeset
for help on using the changeset viewer.