Changeset 31829 for trunk/src/wp-admin/includes/menu.php
- Timestamp:
- 03/19/2015 03:55:39 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/menu.php
r31300 r31829 95 95 continue; 96 96 $subs = $submenu[$data[2]]; 97 $first_sub = array_shift($subs);97 $first_sub = reset( $subs ); 98 98 $old_parent = $data[2]; 99 99 $new_parent = $first_sub[2]; … … 164 164 if ( ! empty( $submenu[$data[2]] ) && 1 == count ( $submenu[$data[2]] ) ) { 165 165 $subs = $submenu[$data[2]]; 166 $first_sub = array_shift($subs);166 $first_sub = reset( $subs ); 167 167 if ( $data[2] == $first_sub[2] ) 168 168 unset( $submenu[$data[2]] );
Note: See TracChangeset
for help on using the changeset viewer.