X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/f5fcdc7994bb67cce809bc4777944ae8b7fad4a4..53f4633144ed68c8b8fb5861f992b5489894a940:/wp-admin/menu.php diff --git a/wp-admin/menu.php b/wp-admin/menu.php index f4fee728..17096a97 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -18,8 +18,6 @@ * 5: Icon for top level menu * * @global array $menu - * @name $menu - * @var array */ $menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' ); @@ -172,8 +170,12 @@ $menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu- unset( $appearance_cap ); // Add 'Editor' to the bottom of the Appearance menu. -if ( ! is_multisite() ) +if ( ! is_multisite() ) { add_action('admin_menu', '_add_themes_utility_last', 101); +} +/** + * + */ function _add_themes_utility_last() { // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');