From 1790ccb38fbce7ee574f7452833ec51f9ed2cc5a Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Thu, 4 Mar 2010 12:23:21 +0000 Subject: [PATCH] Move 'Add New Themes' and 'Editor' to the bottom of the Appearance menu item. See #12442 git-svn-id: https://develop.svn.wordpress.org/trunk@13582 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/menu.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 6c21390c70..f164e2fd8b 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -106,8 +106,15 @@ $menu[59] = array( '', 'read', 'separator2', '', 'wp-menu-separator' ); $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' ); $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); - $submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php'); - $submenu['themes.php'][20] = array(__('Menus'), 'switch_themes', 'nav-menus.php'); + $submenu['themes.php'][10] = array(__('Menus'), 'switch_themes', 'nav-menus.php'); + +// Add 'Add New Themes' and 'Editor' to the bottom of the Appearence menu. +add_action('admin_menu', '_add_themes_utility_last', 101); +function _add_themes_utility_last() { + global $submenu; + $submenu['themes.php'][] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php'); + $submenu['themes.php'][] = array(__('Add New Themes'), 'install_themes', 'theme-install.php'); +} $update_plugins = get_site_transient( 'update_plugins' ); $update_count = 0;