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.

git-svn-id: https://develop.svn.wordpress.org/trunk@56515 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson
2023-09-05 19:24:31 +00:00
parent 5f1a92c96d
commit 305de43a1f
17 changed files with 41 additions and 44 deletions
+2 -2
View File
@@ -694,13 +694,13 @@ switch ( $wp_list_table->current_action() ) {
printf(
'<a href="%1$s" class="page-title-action">%2$s</a>',
esc_url( admin_url( 'user-new.php' ) ),
esc_html_x( 'Add New', 'user' )
esc_html__( 'Add New User' )
);
} elseif ( is_multisite() && current_user_can( 'promote_users' ) ) {
printf(
'<a href="%1$s" class="page-title-action">%2$s</a>',
esc_url( admin_url( 'user-new.php' ) ),
esc_html_x( 'Add Existing', 'user' )
esc_html__( 'Add Existing User' )
);
}