Make WordPress Core

Ticket #47125: 47125-patch.2.diff

File 47125-patch.2.diff, 6.3 KB (added by alexstine, 3 months ago)

Refresh.

  • wp-admin/menu.php

     
    6666$menu[10]                     = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
    6767        $submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' );
    6868        /* translators: Add new file. */
    69         $submenu['upload.php'][10] = array( _x( 'Add New', 'file' ), 'upload_files', 'media-new.php' );
     69        $submenu['upload.php'][10] = array( _x( 'Add New Media File', 'file' ), 'upload_files', 'media-new.php' );
    7070        $i                         = 15;
    7171foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
    7272        if ( ! $tax->show_ui || ! $tax->show_in_menu ) {
     
    8080$menu[15]                           = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
    8181        $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
    8282        /* translators: Add new links. */
    83         $submenu['link-manager.php'][10] = array( _x( 'Add New', 'link' ), 'manage_links', 'link-add.php' );
     83        $submenu['link-manager.php'][10] = array( _x( 'Add New Link', 'link' ), 'manage_links', 'link-add.php' );
    8484        $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
    8585
    8686// $menu[20] = Pages.
     
    305305
    306306if ( ! is_multisite() ) {
    307307        /* translators: Add new plugin. */
    308         $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
     308        $submenu['plugins.php'][10] = array( _x( 'Add New Plugin', 'plugin' ), 'install_plugins', 'plugin-install.php' );
    309309        if ( wp_is_block_theme() ) {
    310310                // Place the menu item below the Theme File Editor menu item.
    311311                add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 );
     
    326326        $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
    327327        $submenu['users.php'][5]             = array( __( 'All Users' ), 'list_users', 'users.php' );
    328328        if ( current_user_can( 'create_users' ) ) {
    329                 $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
     329                $submenu['users.php'][10] = array( _x( 'Add New User', 'user' ), 'create_users', 'user-new.php' );
    330330        } elseif ( is_multisite() ) {
    331                 $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );
     331                $submenu['users.php'][10] = array( _x( 'Add New User', 'user' ), 'promote_users', 'user-new.php' );
    332332        }
    333333
    334334        $submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
  • wp-admin/network/menu.php

     
    5050/* translators: Sites menu item. */
    5151$menu[5]                  = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' );
    5252$submenu['sites.php'][5]  = array( __( 'All Sites' ), 'manage_sites', 'sites.php' );
    53 $submenu['sites.php'][10] = array( _x( 'Add New', 'site' ), 'create_sites', 'site-new.php' );
     53$submenu['sites.php'][10] = array( _x( 'Add New Site', 'site' ), 'create_sites', 'site-new.php' );
    5454
    5555$menu[10]                 = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
    5656$submenu['users.php'][5]  = array( __( 'All Users' ), 'manage_network_users', 'users.php' );
    57 $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
     57$submenu['users.php'][10] = array( _x( 'Add New User', 'user' ), 'create_users', 'user-new.php' );
    5858
    5959if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
    6060        $menu[15] = array(
     
    7878        $menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
    7979}
    8080$submenu['themes.php'][5]  = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
    81 $submenu['themes.php'][10] = array( _x( 'Add New', 'theme' ), 'install_themes', 'theme-install.php' );
     81$submenu['themes.php'][10] = array( _x( 'Add New Theme', 'theme' ), 'install_themes', 'theme-install.php' );
    8282$submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' );
    8383
    8484if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
     
    103103        $menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
    104104}
    105105$submenu['plugins.php'][5]  = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
    106 $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
     106$submenu['plugins.php'][10] = array( _x( 'Add New Plugin', 'plugin' ), 'install_plugins', 'plugin-install.php' );
    107107$submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' );
    108108
    109109$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
  • wp-includes/class-wp-post-type.php

     
    831831                self::$default_labels = array(
    832832                        'name'                     => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ),
    833833                        'singular_name'            => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ),
    834                         'add_new'                  => array( _x( 'Add New', 'post' ), _x( 'Add New', 'page' ) ),
     834                        'add_new'                  => array( _x( 'Add New Post', 'post' ), _x( 'Add New Page', 'page' ) ),
    835835                        'add_new_item'             => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
    836836                        'edit_item'                => array( __( 'Edit Post' ), __( 'Edit Page' ) ),
    837837                        'new_item'                 => array( __( 'New Post' ), __( 'New Page' ) ),