Ticket #23316: 23316.2.patch
File 23316.2.patch, 748 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/includes/plugin.php
1052 1052 1053 1053 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); 1054 1054 1055 if ( null === $position ) 1055 if ( null === $position ) { 1056 1056 $menu[] = $new_menu; 1057 else 1057 } else if ( isset( $menu[$position] ) ) { 1058 $position = $position + substr(base_convert(md5( $menu_slug . $menu_title ), 16, 10) , -5) * 0.00001; 1059 $menu["$position"] = $new_menu; 1060 } else { 1058 1061 $menu[$position] = $new_menu; 1062 } 1059 1063 1060 1064 $_registered_pages[$hookname] = true; 1061 1065