mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
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:
@@ -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' )
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user