Make WordPress Core


Ignore:
Timestamp:
09/05/2023 07:24:31 PM (6 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/users.php

    r55878 r56515  
    695695                '<a href="%1$s" class="page-title-action">%2$s</a>',
    696696                esc_url( admin_url( 'user-new.php' ) ),
    697                 esc_html_x( 'Add New', 'user' )
     697                esc_html__( 'Add New User' )
    698698            );
    699699        } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) {
     
    701701                '<a href="%1$s" class="page-title-action">%2$s</a>',
    702702                esc_url( admin_url( 'user-new.php' ) ),
    703                 esc_html_x( 'Add Existing', 'user' )
     703                esc_html__( 'Add Existing User' )
    704704            );
    705705        }
Note: See TracChangeset for help on using the changeset viewer.