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/user-edit.php

    r56175 r56515  
    239239            <?php if ( ! IS_PROFILE_PAGE ) : ?>
    240240                <?php if ( current_user_can( 'create_users' ) ) : ?>
    241                     <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
     241                    <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
    242242                <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?>
    243                     <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
     243                    <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add Existing User' ); ?></a>
    244244                <?php endif; ?>
    245245            <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.