Changeset 18034 for trunk/wp-admin/includes/menu.php
- Timestamp:
- 05/25/2011 04:05:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/menu.php
r16471 r18034 103 103 $_wp_menu_nopriv[$data[2]] = true; 104 104 105 // If there is only one submenu and it is has same destination as the parent, 106 // remove the submenu. 107 if ( 1 == count ( $submenu[$data[2]] ) ) { 108 $subs = $submenu[$data[2]]; 109 $first_sub = array_shift($subs); 110 if ( $data[2] == $first_sub[2] ) 111 unset( $submenu[$data[2]] ); 112 } 113 105 114 // If submenu is empty... 106 115 if ( empty($submenu[$data[2]]) ) { … … 111 120 } 112 121 } 113 unset($id, $data );122 unset($id, $data, $subs, $first_sub); 114 123 115 124 // Remove any duplicated seperators
Note: See TracChangeset
for help on using the changeset viewer.