Ticket #43072: 43072.diff
| File 43072.diff, 2.9 KB (added by , 8 years ago) |
|---|
-
src/wp-admin/menu.php
203 203 */ 204 204 function _add_themes_utility_last() { 205 205 // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook 206 add_submenu_page( 'themes.php', _x( ' Editor', 'theme editor' ), _x( 'Editor', 'theme editor' ), 'edit_themes', 'theme-editor.php' );206 add_submenu_page( 'themes.php', _x( 'Theme Editor', 'theme editor' ), _x( 'Theme Editor', 'theme editor' ), 'edit_themes', 'theme-editor.php' ); 207 207 } 208 208 209 209 $count = ''; … … 221 221 if ( ! is_multisite() ) { 222 222 /* translators: add new plugin */ 223 223 $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' ); 224 $submenu['plugins.php'][15] = array( _x( ' Editor', 'plugin editor' ), 'edit_plugins', 'plugin-editor.php' );224 $submenu['plugins.php'][15] = array( _x( 'Plugin Editor', 'plugin editor' ), 'edit_plugins', 'plugin-editor.php' ); 225 225 } 226 226 227 227 unset( $update_data ); -
src/wp-admin/network/menu.php
51 51 } 52 52 $submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' ); 53 53 $submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php' ); 54 $submenu['themes.php'][15] = array( _x( ' Editor', 'theme editor' ), 'edit_themes', 'theme-editor.php' );54 $submenu['themes.php'][15] = array( _x( 'Theme Editor', 'theme editor' ), 'edit_themes', 'theme-editor.php' ); 55 55 56 56 if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) { 57 57 $menu[20] = array( sprintf( __( 'Plugins %s' ), "<span class='update-plugins count-{$update_data['counts']['plugins']}'><span class='plugin-count'>" . number_format_i18n( $update_data['counts']['plugins'] ) . '</span></span>' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' ); … … 60 60 } 61 61 $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' ); 62 62 $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' ); 63 $submenu['plugins.php'][15] = array( _x( ' Editor', 'plugin editor' ), 'edit_plugins', 'plugin-editor.php' );63 $submenu['plugins.php'][15] = array( _x( 'Plugin Editor', 'plugin editor' ), 'edit_plugins', 'plugin-editor.php' ); 64 64 65 65 $menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' ); 66 66 if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {