Ticket #17528: 17528.fix-notices.patch
File 17528.fix-notices.patch, 549 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/menu.php
104 104 105 105 // If there is only one submenu and it is has same destination as the parent, 106 106 // remove the submenu. 107 if ( 1 == count ( $submenu[$data[2]] ) ) {107 if ( ! empty( $submenu[$data[2]] ) && 1 == count ( $submenu[$data[2]] ) ) { 108 108 $subs = $submenu[$data[2]]; 109 109 $first_sub = array_shift($subs); 110 110 if ( $data[2] == $first_sub[2] )