-if (strpos($_SERVER['REQUEST_URI'], 'page-new.php') !== false)
- $menu[10] = array(__('Manage'), 'edit_pages', 'edit-pages.php');
-elseif (strpos($_SERVER['REQUEST_URI'], 'link-add.php') !== false)
- $menu[10] = array(__('Manage'), 'manage_links', 'link-manager.php');
-else
- $menu[10] = array(__('Manage'), 'edit_posts', 'edit.php');
-
-$awaiting_mod = wp_count_comments();
-$awaiting_mod = $awaiting_mod->moderated;
-$menu[15] = array(__('Design'), 'switch_themes', 'themes.php');
-$menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php');
-$menu[30] = array(__('Settings'), 'manage_options', 'options-general.php');
-$menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php');
-if ( current_user_can('edit_users') )
- $menu[40] = array(__('Users'), 'edit_users', 'users.php');
-else
- $menu[40] = array(__('Profile'), 'read', 'profile.php');
-
-$_wp_real_parent_file['post.php'] = 'post-new.php'; // Back-compat
-$submenu['post-new.php'][5] = array(__('Post'), 'edit_posts', 'post-new.php');
-$submenu['post-new.php'][10] = array(__('Page'), 'edit_pages', 'page-new.php');
-$submenu['post-new.php'][15] = array(__('Link'), 'manage_links', 'link-add.php');
-
-$submenu['edit-comments.php'][5] = array(__('Comments'), 'edit_posts', 'edit-comments.php');
-
-$submenu['edit.php'][5] = array(__('Posts'), 'edit_posts', 'edit.php');
-$submenu['edit.php'][10] = array(__('Pages'), 'edit_pages', 'edit-pages.php');
-$submenu['edit.php'][15] = array(__('Links'), 'manage_links', 'link-manager.php');
-$submenu['edit.php'][20] = array(__('Categories'), 'manage_categories', 'categories.php');
-$submenu['edit.php'][25] = array(__('Tags'), 'manage_categories', 'edit-tags.php');
-$submenu['edit.php'][30] = array(__('Link Categories'), 'manage_categories', 'edit-link-categories.php');
-$submenu['edit.php'][35] = array(__('Media Library'), 'upload_files', 'upload.php');
-$submenu['edit.php'][40] = array(__('Import'), 'import', 'import.php');
-$submenu['edit.php'][45] = array(__('Export'), 'import', 'export.php');
-
-if ( current_user_can('edit_users') ) {
- $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
- $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php');
- $submenu['users.php'][10] = array(__('Your Profile'), 'read', 'profile.php');
-} else {
- $_wp_real_parent_file['users.php'] = 'profile.php';
- $submenu['profile.php'][5] = array(__('Your Profile'), 'read', 'profile.php');
-}