WordPress.org

Make WordPress Core

Changeset 13582


Ignore:
Timestamp:
03/04/2010 12:23:21 PM (10 years ago)
Author:
dd32
Message:

Move 'Add New Themes' and 'Editor' to the bottom of the Appearance menu item. See #12442

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r13579 r13582  
    107107$menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' );
    108108    $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
    109     $submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
    110     $submenu['themes.php'][20] = array(__('Menus'), 'switch_themes', 'nav-menus.php');
     109    $submenu['themes.php'][10] = array(__('Menus'), 'switch_themes', 'nav-menus.php');
     110
     111// Add 'Add New Themes' and 'Editor' to the bottom of the Appearence menu.
     112add_action('admin_menu', '_add_themes_utility_last', 101);
     113function _add_themes_utility_last() {
     114    global $submenu;
     115    $submenu['themes.php'][] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
     116    $submenu['themes.php'][] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
     117}
    111118
    112119$update_plugins = get_site_transient( 'update_plugins' );
Note: See TracChangeset for help on using the changeset viewer.