Skip to content

Commit

Permalink
Move 'Add New Themes' and 'Editor' to the bottom of the Appearance me…
Browse files Browse the repository at this point in the history
…nu item. See #12442

git-svn-id: http://svn.automattic.com/wordpress/trunk@13582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
dd32 committed Mar 4, 2010
1 parent a1fc891 commit e193aec
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions wp-admin/menu.php
Expand Up @@ -106,8 +106,15 @@

$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;
Expand Down

0 comments on commit e193aec

Please sign in to comment.