+$menu[75] = array( __('Tools'), 'edit_posts', 'tools.php', '', 'menu-top menu-icon-tools', 'menu-tools', 'dashicons-admin-tools' );
+ $submenu['tools.php'][5] = array( __('Available Tools'), 'edit_posts', 'tools.php' );
+ $submenu['tools.php'][10] = array( __('Import'), 'import', 'import.php' );
+ $submenu['tools.php'][15] = array( __('Export'), 'export', 'export.php' );
+ if ( is_multisite() && !is_main_site() )
+ $submenu['tools.php'][25] = array( __('Delete Site'), 'manage_options', 'ms-delete-site.php' );
+ if ( ! is_multisite() && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE )
+ $submenu['tools.php'][50] = array(__('Network Setup'), 'manage_options', 'network.php');
+
+$menu[80] = array( __('Settings'), 'manage_options', 'options-general.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
+ $submenu['options-general.php'][10] = array(_x('General', 'settings screen'), 'manage_options', 'options-general.php');
+ $submenu['options-general.php'][15] = array(__('Writing'), 'manage_options', 'options-writing.php');
+ $submenu['options-general.php'][20] = array(__('Reading'), 'manage_options', 'options-reading.php');
+ $submenu['options-general.php'][25] = array(__('Discussion'), 'manage_options', 'options-discussion.php');
+ $submenu['options-general.php'][30] = array(__('Media'), 'manage_options', 'options-media.php');
+ $submenu['options-general.php'][40] = array(__('Permalinks'), 'manage_options', 'options-permalink.php');
+
+$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
+
+$menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' );
+
+// Back-compat for old top-levels
+$_wp_real_parent_file['post.php'] = 'edit.php';
+$_wp_real_parent_file['post-new.php'] = 'edit.php';
+$_wp_real_parent_file['edit-pages.php'] = 'edit.php?post_type=page';
+$_wp_real_parent_file['page-new.php'] = 'edit.php?post_type=page';
+$_wp_real_parent_file['wpmu-admin.php'] = 'tools.php';
+$_wp_real_parent_file['ms-admin.php'] = 'tools.php';
+
+// ensure we're backwards compatible
+$compat = array(
+ 'index' => 'dashboard',
+ 'edit' => 'posts',
+ 'post' => 'posts',
+ 'upload' => 'media',
+ 'link-manager' => 'links',
+ 'edit-pages' => 'pages',
+ 'page' => 'pages',
+ 'edit-comments' => 'comments',
+ 'options-general' => 'settings',
+ 'themes' => 'appearance',
+ );
+
+require_once(ABSPATH . 'wp-admin/includes/menu.php');