Make WordPress Core


Ignore:
Timestamp:
09/05/2023 07:24:31 PM (13 months ago)
Author:
joedolson
Message:

Administration: Add improved context for add new links.

Consistently expand Add New links to include the type of content to add. Improve consistency of text casing to use initial caps throughout.

Props afercia, gonzomir, alexstine, swissspidy, joedolson.
Fixes #47125.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r56302 r56515  
    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' );
    68     /* translators: Add new file. */
    69     $submenu['upload.php'][10] = array( _x( 'Add New', 'file' ), 'upload_files', 'media-new.php' );
     68    $submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' );
    7069    $i                         = 15;
    7170foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
     
    8079$menu[15]                           = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
    8180    $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
    82     /* translators: Add new links. */
    83     $submenu['link-manager.php'][10] = array( _x( 'Add New', 'link' ), 'manage_links', 'link-add.php' );
     81    $submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' );
    8482    $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
    8583
     
    305303
    306304if ( ! is_multisite() ) {
    307     /* translators: Add new plugin. */
    308     $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
     305    $submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
    309306    if ( wp_is_block_theme() ) {
    310307        // Place the menu item below the Theme File Editor menu item.
     
    327324    $submenu['users.php'][5]             = array( __( 'All Users' ), 'list_users', 'users.php' );
    328325    if ( current_user_can( 'create_users' ) ) {
    329         $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'create_users', 'user-new.php' );
     326        $submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
    330327    } elseif ( is_multisite() ) {
    331         $submenu['users.php'][10] = array( _x( 'Add New', 'user' ), 'promote_users', 'user-new.php' );
     328        $submenu['users.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
    332329    }
    333330
Note: See TracChangeset for help on using the changeset viewer.