Make WordPress Core

Ticket #43072: 43072.diff

File 43072.diff, 2.9 KB (added by xkon, 4 years ago)

Theme Editor / Plugin Editor

  • src/wp-admin/menu.php

     
    203203 */
    204204function _add_themes_utility_last() {
    205205        // 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' );
    207207}
    208208
    209209$count = '';
     
    221221if ( ! is_multisite() ) {
    222222        /* translators: add new plugin */
    223223        $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' );
    225225}
    226226
    227227unset( $update_data );
  • src/wp-admin/network/menu.php

     
    5151}
    5252$submenu['themes.php'][5]  = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
    5353$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' );
    5555
    5656if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
    5757        $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' );
     
    6060}
    6161$submenu['plugins.php'][5]  = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
    6262$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' );
    6464
    6565$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
    6666if ( defined( 'MULTISITE' ) && defined( 'WP_ALLOW_MULTISITE' ) && WP_ALLOW_MULTISITE ) {