Changeset 13582 for trunk/wp-admin/menu.php
- Timestamp:
- 03/04/2010 12:23:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/menu.php
r13579 r13582 107 107 $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' ); 108 108 $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. 112 add_action('admin_menu', '_add_themes_utility_last', 101); 113 function _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 } 111 118 112 119 $update_plugins = get_site_transient( 'update_plugins' );
Note: See TracChangeset
for help on using the changeset viewer.