Ticket #15595: 15595.patch
| File 15595.patch, 670 bytes (added by , 15 years ago) |
|---|
-
plugin.php
836 836 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url ); 837 837 838 838 if ( null === $position ) 839 { 839 840 $menu[] = $new_menu; 841 } 840 842 else 843 { 844 //In case of position collision, push the conflicting menu to the next open position 845 while(isset($menu[$position])) 846 { 847 $position++; 848 } 849 841 850 $menu[$position] = $new_menu; 842 851 } 843 852 $_registered_pages[$hookname] = true; 844 853 845 854 // No parent as top level 846 855 $_parent_pages[$menu_slug] = false; 847 856