Make WordPress Core

Changeset 59784


Ignore:
Timestamp:
02/08/2025 11:42:29 AM (18 months ago)
Author:
audrasjb
Message:

Administration: Replace "Add New {Item}" wording with "Add {Item}" across the administration.

This changeset replaces each occurrence of "Add New {Item}" label with "Add {Item}" in WordPress administration, to make the interface more consistent and simplify the translation effort.

Props jameskoster, audrasjb, ntsekouras, afercia, peterwilsoncc, youknowriad, joedolson, sukhendu2002, jdy68, beryldlg, fxbenard.
See #61219.

Location:
trunk
Files:
33 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-link-form.php

    r56573 r59784  
    2020} else {
    2121        /* translators: %s: URL to Links screen. */
    22         $heading      = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
     22        $heading      = sprintf( __( '<a href="%s">Links</a> / Add Link' ), 'link-manager.php' );
    2323        $submit_text  = __( 'Add Link' );
    2424        $form_name    = 'addlink';
     
    8888</h1>
    8989
    90 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
     90<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add Link' ); ?></a>
    9191
    9292<hr class="wp-header-end">
  • trunk/src/wp-admin/includes/meta-boxes.php

    r58774 r59784  
    12011201
    12021202        <div id="category-adder" class="wp-hidden-children">
    1203                 <a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
     1203                <a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add Category' ); ?></a>
    12041204                <p id="link-category-add" class="wp-hidden-child">
    12051205                        <label class="screen-reader-text" for="newcat">
    12061206                                <?php
    12071207                                /* translators: Hidden accessibility text. */
    1208                                 _e( '+ Add New Category' );
     1208                                _e( '+ Add Category' );
    12091209                                ?>
    12101210                        </label>
  • trunk/src/wp-admin/includes/template.php

    r59564 r59784  
    462462                <span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span>
    463463                <span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span>
    464                 <span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span>
     464                <span class="hidden" id="addhead"><?php _e( 'Add Comment' ); ?></span>
    465465        </legend>
    466466
     
    736736        }
    737737        ?>
    738 <p><strong><?php _e( 'Add New Custom Field:' ); ?></strong></p>
     738<p><strong><?php _e( 'Add Custom Field:' ); ?></strong></p>
    739739<table id="newmeta">
    740740<thead>
  • trunk/src/wp-admin/link-add.php

    r58069 r59784  
    1515
    1616// Used in the HTML title tag.
    17 $title       = __( 'Add New Link' );
     17$title       = __( 'Add Link' );
    1818$parent_file = 'link-manager.php';
    1919
  • trunk/src/wp-admin/link-manager.php

    r56573 r59784  
    102102</h1>
    103103
    104 <a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
     104<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add Link' ); ?></a>
    105105
    106106<?php
  • trunk/src/wp-admin/menu.php

    r59678 r59784  
    7171$menu[10]                      = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
    7272        $submenu['upload.php'][5]  = array( __( 'Library' ), 'upload_files', 'upload.php' );
    73         $submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' );
     73        $submenu['upload.php'][10] = array( __( 'Add Media File' ), 'upload_files', 'media-new.php' );
    7474        $i                         = 15;
    7575foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
     
    8484$menu[15]                            = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
    8585        $submenu['link-manager.php'][5]  = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
    86         $submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' );
     86        $submenu['link-manager.php'][10] = array( __( 'Add Link' ), 'manage_links', 'link-add.php' );
    8787        $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
    8888
     
    303303
    304304if ( ! is_multisite() ) {
    305         $submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
     305        $submenu['plugins.php'][10] = array( __( 'Add Plugin' ), 'install_plugins', 'plugin-install.php' );
    306306        if ( wp_is_block_theme() ) {
    307307                // Place the menu item below the Theme File Editor menu item.
     
    324324        $submenu['users.php'][5]             = array( __( 'All Users' ), 'list_users', 'users.php' );
    325325        if ( current_user_can( 'create_users' ) ) {
    326                 $submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
     326                $submenu['users.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' );
    327327        } elseif ( is_multisite() ) {
    328                 $submenu['users.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
     328                $submenu['users.php'][10] = array( __( 'Add User' ), 'promote_users', 'user-new.php' );
    329329        }
    330330
     
    334334        $submenu['profile.php'][5]         = array( __( 'Profile' ), 'read', 'profile.php' );
    335335        if ( current_user_can( 'create_users' ) ) {
    336                 $submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
     336                $submenu['profile.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' );
    337337        } elseif ( is_multisite() ) {
    338                 $submenu['profile.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
     338                $submenu['profile.php'][10] = array( __( 'Add User' ), 'promote_users', 'user-new.php' );
    339339        }
    340340}
  • trunk/src/wp-admin/network/menu.php

    r59678 r59784  
    5656$menu[5]                  = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' );
    5757$submenu['sites.php'][5]  = array( __( 'All Sites' ), 'manage_sites', 'sites.php' );
    58 $submenu['sites.php'][10] = array( __( 'Add New Site' ), 'create_sites', 'site-new.php' );
     58$submenu['sites.php'][10] = array( __( 'Add Site' ), 'create_sites', 'site-new.php' );
    5959
    6060$menu[10]                 = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
    6161$submenu['users.php'][5]  = array( __( 'All Users' ), 'manage_network_users', 'users.php' );
    62 $submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
     62$submenu['users.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' );
    6363
    6464if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
     
    8484}
    8585$submenu['themes.php'][5]  = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
    86 $submenu['themes.php'][10] = array( __( 'Add New Theme' ), 'install_themes', 'theme-install.php' );
     86$submenu['themes.php'][10] = array( __( 'Add Theme' ), 'install_themes', 'theme-install.php' );
    8787$submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' );
    8888
     
    109109}
    110110$submenu['plugins.php'][5]  = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
    111 $submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
     111$submenu['plugins.php'][10] = array( __( 'Add Plugin' ), 'install_plugins', 'plugin-install.php' );
    112112$submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' );
    113113
  • trunk/src/wp-admin/network/settings.php

    r59600 r59784  
    249249
    250250                        <tr id="addnewusers">
    251                                 <th scope="row"><?php _e( 'Add New Users' ); ?></th>
    252                                 <td>
    253                                         <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ); ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users &rarr; Add New User" page' ); ?></label>
     251                                <th scope="row"><?php _e( 'Add Users' ); ?></th>
     252                                <td>
     253                                        <label><input name="add_new_users" type="checkbox" id="add_new_users" value="1"<?php checked( get_site_option( 'add_new_users' ) ); ?> /> <?php _e( 'Allow site administrators to add new users to their site via the "Users &rarr; Add User" page' ); ?></label>
    254254                                </td>
    255255                        </tr>
  • trunk/src/wp-admin/network/site-new.php

    r58131 r59784  
    180180
    181181// Used in the HTML title tag.
    182 $title       = __( 'Add New Site' );
     182$title       = __( 'Add Site' );
    183183$parent_file = 'sites.php';
    184184
     
    190190
    191191<div class="wrap">
    192 <h1 id="add-new-site"><?php _e( 'Add New Site' ); ?></h1>
     192<h1 id="add-new-site"><?php _e( 'Add Site' ); ?></h1>
    193193<?php
    194194if ( ! empty( $messages ) ) {
  • trunk/src/wp-admin/network/site-users.php

    r56409 r59784  
    342342 * Filters whether to show the Add New User form on the Multisite Users screen.
    343343 *
     344 * Note: While WordPress is moving towards simplifying labels by removing "New" from "Add New X" labels,
     345 * we keep "Add New User" here to maintain a clear distinction from the "Add Existing User" section above.
     346 *
    344347 * @since 3.1.0
    345348 *
     
    375378        </table>
    376379        <?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ); ?>
    377         <?php submit_button( __( 'Add New User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-user' ) ); ?>
     380        <?php submit_button( __( 'Add User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-user' ) ); ?>
    378381</form>
    379382<?php endif; ?>
  • trunk/src/wp-admin/network/sites.php

    r58564 r59784  
    2929                'title'   => __( 'Overview' ),
    3030                'content' =>
    31                 '<p>' . __( 'Add New Site takes you to the screen for adding a new site to the network. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
     31                '<p>' . __( 'Add Site takes you to the screen for adding a new site to the network. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.' ) . '</p>' .
    3232                '<p>' . __( 'This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.' ) . '</p>' .
    3333                        '<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' .
     
    389389
    390390<?php if ( current_user_can( 'create_sites' ) ) : ?>
    391         <a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Site' ); ?></a>
     391        <a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Site' ); ?></a>
    392392<?php endif; ?>
    393393
  • trunk/src/wp-admin/network/themes.php

    r58405 r59784  
    364364
    365365<?php if ( current_user_can( 'install_themes' ) ) : ?>
    366         <a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
     366        <a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add Theme' ); ?></a>
    367367<?php endif; ?>
    368368
  • trunk/src/wp-admin/network/user-new.php

    r56409 r59784  
    11<?php
    22/**
    3  * Add New User network administration panel.
     3 * Add User network administration panel.
    44 *
    55 * @package WordPress
     
    9898
    9999// Used in the HTML title tag.
    100 $title       = __( 'Add New User' );
     100$title       = __( 'Add User' );
    101101$parent_file = 'users.php';
    102102
     
    105105
    106106<div class="wrap">
    107 <h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
     107<h1 id="add-new-user"><?php _e( 'Add User' ); ?></h1>
    108108<?php
    109109if ( '' !== $message ) {
  • trunk/src/wp-admin/network/users.php

    r56549 r59784  
    290290        if ( current_user_can( 'create_users' ) ) :
    291291                ?>
    292                 <a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
     292                <a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add User' ); ?></a>
    293293                <?php
    294294        endif;
  • trunk/src/wp-admin/plugins.php

    r59094 r59784  
    567567                                '<p>' . sprintf(
    568568                                        /* translators: %s: WordPress Plugin Directory URL. */
    569                                         __( 'If you would like to see more plugins to choose from, click on the &#8220;Add New Plugin&#8221; button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they are free!' ),
     569                                        __( 'If you would like to see more plugins to choose from, click on the &#8220;Add Plugin&#8221; button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they are free!' ),
    570570                                        __( 'https://wordpress.org/plugins/' )
    571571                                ) . '</p>',
     
    768768if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) {
    769769        ?>
    770         <a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Plugin' ); ?></a>
     770        <a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Plugin' ); ?></a>
    771771        <?php
    772772}
  • trunk/src/wp-admin/theme-install.php

    r59022 r59784  
    5555                ),
    5656                'l10n'            => array(
    57                         'addNew'              => __( 'Add New Theme' ),
     57                        'addNew'              => __( 'Add Theme' ),
    5858                        'search'              => __( 'Search Themes' ),
    5959                        'upload'              => __( 'Upload Theme' ),
  • trunk/src/wp-admin/themes.php

    r59400 r59784  
    154154                $help_install = '<p>' . sprintf(
    155155                        /* translators: %s: https://wordpress.org/themes/ */
    156                         __( 'If you would like to see more themes to choose from, click on the &#8220;Add New Theme&#8221; button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they are free!' ),
     156                        __( 'If you would like to see more themes to choose from, click on the &#8220;Add Theme&#8221; button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they are free!' ),
    157157                        __( 'https://wordpress.org/themes/' )
    158158                ) . '</p>';
     
    232232                ),
    233233                'l10n'     => array(
    234                         'addNew'        => __( 'Add New Theme' ),
     234                        'addNew'        => __( 'Add Theme' ),
    235235                        'search'        => __( 'Search installed themes' ),
    236236                        /* translators: %d: Number of themes. */
     
    253253        </h1>
    254254        <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
    255                 <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
     255                <a href="<?php echo esc_url( admin_url( 'theme-install.php' ) ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html__( 'Add Theme' ); ?></a>
    256256        <?php endif; ?>
    257257        <hr class="wp-header-end">
  • trunk/src/wp-admin/upload.php

    r57796 r59784  
    213213                if ( current_user_can( 'upload_files' ) ) {
    214214                        ?>
    215                         <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html__( 'Add New Media File' ); ?></a>
     215                        <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html__( 'Add Media File' ); ?></a>
    216216                        <?php
    217217                }
     
    420420if ( current_user_can( 'upload_files' ) ) {
    421421        ?>
    422         <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Media File' ); ?></a>
     422        <a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Media File' ); ?></a>
    423423                                                <?php
    424424}
  • trunk/src/wp-admin/user-edit.php

    r59695 r59784  
    267267                        <?php if ( ! IS_PROFILE_PAGE ) : ?>
    268268                                <?php if ( current_user_can( 'create_users' ) ) : ?>
    269                                         <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
     269                                        <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add User' ); ?></a>
    270270                                <?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?>
    271271                                        <a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add Existing User' ); ?></a>
     
    833833                                                                                ?>
    834834
    835                                                                                 <button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add New Application Password' ); ?></button>
     835                                                                                <button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add Application Password' ); ?></button>
    836836                                                                        </div>
    837837                                                                        <?php
  • trunk/src/wp-admin/user-new.php

    r58999 r59784  
    262262
    263263// Used in the HTML title tag.
    264 $title       = __( 'Add New User' );
     264$title       = __( 'Add User' );
    265265$parent_file = 'users.php';
    266266
     
    270270}
    271271
    272 $help = '<p>' . __( 'To add a new user to your site, fill in the form on this screen and click the Add New User button at the bottom.' ) . '</p>';
     272$help = '<p>' . __( 'To add a new user to your site, fill in the form on this screen and click the Add User button at the bottom.' ) . '</p>';
    273273
    274274if ( is_multisite() ) {
     
    281281}
    282282
    283 $help .= '<p>' . __( 'Remember to click the Add New User button at the bottom of this screen when you are finished.' ) . '</p>';
     283$help .= '<p>' . __( 'Remember to click the Add User button at the bottom of this screen when you are finished.' ) . '</p>';
    284284
    285285get_current_screen()->add_help_tab(
     
    384384<?php
    385385if ( current_user_can( 'create_users' ) ) {
    386         _e( 'Add New User' );
     386        _e( 'Add User' );
    387387} elseif ( current_user_can( 'promote_users' ) ) {
    388388        _e( 'Add Existing User' );
     
    508508if ( current_user_can( 'create_users' ) ) {
    509509        if ( $do_both ) {
    510                 echo '<h2 id="create-new-user">' . __( 'Add New User' ) . '</h2>';
     510                echo '<h2 id="create-new-user">' . __( 'Add User' ) . '</h2>';
    511511        }
    512512        ?>
     
    660660        ?>
    661661
    662         <?php submit_button( __( 'Add New User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?>
     662        <?php submit_button( __( 'Add User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?>
    663663
    664664</form>
  • trunk/src/wp-admin/users.php

    r58566 r59784  
    3434                'title'   => __( 'Overview' ),
    3535                'content' => '<p>' . __( 'This screen lists all the existing users for your site. Each user has one of five defined roles as set by the site admin: Site Administrator, Editor, Author, Contributor, or Subscriber. Users with roles other than Administrator will see fewer options in the dashboard navigation when they are logged in, based on their role.' ) . '</p>' .
    36                 '<p>' . __( 'To add a new user for your site, click the Add New User button at the top of the screen or Add New User in the Users menu section.' ) . '</p>',
     36                '<p>' . __( 'To add a new user for your site, click the Add User button at the top of the screen or Add User in the Users menu section.' ) . '</p>',
    3737        )
    3838);
     
    779779                                '<a href="%1$s" class="page-title-action">%2$s</a>',
    780780                                esc_url( admin_url( 'user-new.php' ) ),
    781                                 esc_html__( 'Add New User' )
     781                                esc_html__( 'Add User' )
    782782                        );
    783783                } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) {
  • trunk/src/wp-includes/class-wp-customize-control.php

    r59688 r59784  
    637637                                        <button type="button" class="button-link add-new-toggle">
    638638                                                <?php
    639                                                 /* translators: %s: Add New Page label. */
     639                                                /* translators: %s: Add Page label. */
    640640                                                printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
    641641                                                ?>
  • trunk/src/wp-includes/class-wp-post-type.php

    r59700 r59784  
    990990                        'name'                     => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ),
    991991                        'singular_name'            => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ),
    992                         'add_new'                  => array( __( 'Add New' ), __( 'Add New' ) ),
    993                         'add_new_item'             => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
     992                        'add_new'                  => array( __( 'Add' ), __( 'Add New' ) ),
     993                        'add_new_item'             => array( __( 'Add Post' ), __( 'Add New Page' ) ),
    994994                        'edit_item'                => array( __( 'Edit Post' ), __( 'Edit Page' ) ),
    995995                        'new_item'                 => array( __( 'New Post' ), __( 'New Page' ) ),
  • trunk/src/wp-includes/class-wp-taxonomy.php

    r55694 r59784  
    625625                        'view_item'                  => array( __( 'View Tag' ), __( 'View Category' ) ),
    626626                        'update_item'                => array( __( 'Update Tag' ), __( 'Update Category' ) ),
    627                         'add_new_item'               => array( __( 'Add New Tag' ), __( 'Add New Category' ) ),
     627                        'add_new_item'               => array( __( 'Add Tag' ), __( 'Add New Category' ) ),
    628628                        'new_item_name'              => array( __( 'New Tag Name' ), __( 'New Category Name' ) ),
    629629                        'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ),
  • trunk/src/wp-includes/customize/class-wp-customize-header-image-control.php

    r56548 r59784  
    213213                                <?php
    214214                                if ( current_theme_supports( 'custom-header', 'video' ) ) {
    215                                         _e( 'Click &#8220;Add New Image&#8221; to upload an image file from your computer. Your theme works best with an image that matches the size of your video &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' );
     215                                        _e( 'Click &#8220;Add Image&#8221; to upload an image file from your computer. Your theme works best with an image that matches the size of your video &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' );
    216216                                } elseif ( $width && $height ) {
    217217                                        printf(
    218218                                                /* translators: %s: Header size in pixels. */
    219                                                 __( 'Click &#8220;Add New Image&#8221; to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
     219                                                __( 'Click &#8220;Add Image&#8221; to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
    220220                                                sprintf( '<strong>%s &times; %s</strong>', $width, $height )
    221221                                        );
     
    223223                                        printf(
    224224                                                /* translators: %s: Header width in pixels. */
    225                                                 __( 'Click &#8220;Add New Image&#8221; to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
     225                                                __( 'Click &#8220;Add Image&#8221; to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
    226226                                                sprintf( '<strong>%s</strong>', $width )
    227227                                        );
     
    229229                                        printf(
    230230                                                /* translators: %s: Header height in pixels. */
    231                                                 __( 'Click &#8220;Add New Image&#8221; to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
     231                                                __( 'Click &#8220;Add Image&#8221; to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels &#8212; you&#8217;ll be able to crop your image once you upload it for a perfect fit.' ),
    232232                                                sprintf( '<strong>%s</strong>', $height )
    233233                                        );
     
    247247                                <?php if ( current_user_can( 'upload_files' ) ) : ?>
    248248                                <button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
    249                                 <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add New Header Image' ); ?>"><?php _e( 'Add New Image' ); ?></button>
     249                                <button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add Header Image' ); ?>"><?php _e( 'Add Image' ); ?></button>
    250250                                <?php endif; ?>
    251251                        </div>
  • trunk/src/wp-includes/media-template.php

    r59120 r59784  
    224224        </script>
    225225
    226         <?php // Template for the inline uploader, used for example in the Media Library admin page - Add New. ?>
     226        <?php // Template for the inline uploader, used for example in the Media Library admin page - Add. ?>
    227227        <script type="text/html" id="tmpl-uploader-inline">
    228228                <# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
  • trunk/src/wp-includes/post.php

    r59700 r59784  
    7676                                'name'           => _x( 'Media', 'post type general name' ),
    7777                                'name_admin_bar' => _x( 'Media', 'add new from admin bar' ),
    78                                 'add_new'        => __( 'Add New Media File' ),
     78                                'add_new'        => __( 'Add Media File' ),
    7979                                'edit_item'      => __( 'Edit Media' ),
    8080                                'view_item'      => ( '1' === get_option( 'wp_attachment_pages_enabled' ) ) ? __( 'View Attachment Page' ) : __( 'View Media File' ),
     
    203203                                'name'               => _x( 'Changesets', 'post type general name' ),
    204204                                'singular_name'      => _x( 'Changeset', 'post type singular name' ),
    205                                 'add_new'            => __( 'Add New Changeset' ),
    206                                 'add_new_item'       => __( 'Add New Changeset' ),
     205                                'add_new'            => __( 'Add Changeset' ),
     206                                'add_new_item'       => __( 'Add Changeset' ),
    207207                                'new_item'           => __( 'New Changeset' ),
    208208                                'edit_item'          => __( 'Edit Changeset' ),
     
    285285                                'name'                     => _x( 'Patterns', 'post type general name' ),
    286286                                'singular_name'            => _x( 'Pattern', 'post type singular name' ),
    287                                 'add_new'                  => __( 'Add New Pattern' ),
    288                                 'add_new_item'             => __( 'Add New Pattern' ),
     287                                'add_new'                  => __( 'Add Pattern' ),
     288                                'add_new_item'             => __( 'Add Pattern' ),
    289289                                'new_item'                 => __( 'New Pattern' ),
    290290                                'edit_item'                => __( 'Edit Block Pattern' ),
     
    351351                                'name'                  => _x( 'Templates', 'post type general name' ),
    352352                                'singular_name'         => _x( 'Template', 'post type singular name' ),
    353                                 'add_new'               => __( 'Add New Template' ),
    354                                 'add_new_item'          => __( 'Add New Template' ),
     353                                'add_new'               => __( 'Add Template' ),
     354                                'add_new_item'          => __( 'Add Template' ),
    355355                                'new_item'              => __( 'New Template' ),
    356356                                'edit_item'             => __( 'Edit Template' ),
     
    416416                                'name'                  => _x( 'Template Parts', 'post type general name' ),
    417417                                'singular_name'         => _x( 'Template Part', 'post type singular name' ),
    418                                 'add_new'               => __( 'Add New Template Part' ),
    419                                 'add_new_item'          => __( 'Add New Template Part' ),
     418                                'add_new'               => __( 'Add Template Part' ),
     419                                'add_new_item'          => __( 'Add Template Part' ),
    420420                                'new_item'              => __( 'New Template Part' ),
    421421                                'edit_item'             => __( 'Edit Template Part' ),
     
    523523                                'name'                  => _x( 'Navigation Menus', 'post type general name' ),
    524524                                'singular_name'         => _x( 'Navigation Menu', 'post type singular name' ),
    525                                 'add_new'               => __( 'Add New Navigation Menu' ),
    526                                 'add_new_item'          => __( 'Add New Navigation Menu' ),
     525                                'add_new'               => __( 'Add Navigation Menu' ),
     526                                'add_new_item'          => __( 'Add Navigation Menu' ),
    527527                                'new_item'              => __( 'New Navigation Menu' ),
    528528                                'edit_item'             => __( 'Edit Navigation Menu' ),
     
    20272027 *          by `$post_type_object->label`. Default is 'Posts' / 'Pages'.
    20282028 * - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'.
    2029  * - `add_new` - Label for adding a new item. Default is 'Add New' / 'Add New'.
    2030  * - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'.
     2029 * - `add_new` - Label for adding a new item. Default is 'Add Post' / 'Add Page'.
     2030 * - `add_new_item` - Label for adding a new singular item. Default is 'Add Post' / 'Add Page'.
    20312031 * - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'.
    20322032 * - `new_item` - Label for the new item page title. Default is 'New Post' / 'New Page'.
  • trunk/src/wp-includes/taxonomy.php

    r59657 r59784  
    147147                                'edit_item'                  => __( 'Edit Link Category' ),
    148148                                'update_item'                => __( 'Update Link Category' ),
    149                                 'add_new_item'               => __( 'Add New Link Category' ),
     149                                'add_new_item'               => __( 'Add Link Category' ),
    150150                                'new_item_name'              => __( 'New Link Category Name' ),
    151151                                'separate_items_with_commas' => null,
     
    234234                                'name'                       => _x( 'Pattern Categories', 'taxonomy general name' ),
    235235                                'singular_name'              => _x( 'Pattern Category', 'taxonomy singular name' ),
    236                                 'add_new_item'               => __( 'Add New Category' ),
     236                                'add_new_item'               => __( 'Add Category' ),
    237237                                'add_or_remove_items'        => __( 'Add or remove pattern categories' ),
    238238                                'back_to_items'              => __( '&larr; Go to Pattern Categories' ),
     
    679679 *     @type string $view_item                  Default 'View Tag'/'View Category'.
    680680 *     @type string $update_item                Default 'Update Tag'/'Update Category'.
    681  *     @type string $add_new_item               Default 'Add New Tag'/'Add New Category'.
     681 *     @type string $add_new_item               Default 'Add Tag'/'Add Category'.
    682682 *     @type string $new_item_name              Default 'New Tag Name'/'New Category Name'.
    683683 *     @type string $template_name              Default 'Tag Archives'/'Category Archives'.
  • trunk/tests/e2e/specs/profile/applications-passwords.test.js

    r59084 r59784  
    102102                await newPasswordField.fill( applicationName );
    103103
    104                 await this.page.getByRole( 'button', { name: 'Add New Application Password' } ).click();
     104                await this.page.getByRole( 'button', { name: 'Add Application Password' } ).click();
    105105                await expect( this.page.getByRole( 'alert' ) ).toBeVisible();
    106106        }
  • trunk/tests/phpunit/tests/formatting/wpAutop.php

    r57987 r59784  
    2323<ul>
    2424<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users &#8250; Profile</a></li>
    25 <li>Start publishing at <a href="%4$s" title="Create a new post">Posts &#8250; Add New</a> and at <a href="%5$s" title="Create a new page">Pages &#8250; Add New</a></li>
    26 <li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins &#8250; Add New</a></li>
    27 <li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance &#8250; Add New Themes</a></li>
     25<li>Start publishing at <a href="%4$s" title="Create a new post">Posts &#8250; Add</a> and at <a href="%5$s" title="Create a new page">Pages &#8250; Add</a></li>
     26<li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins &#8250; Add</a></li>
     27<li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance &#8250; Add Themes</a></li>
    2828<li>Modify and prettify your website&#8217;s links at <a href="%8$s" title="For example, select a link structure like: http://example.com/1999/12/post-name">Settings &#8250; Permalinks</a></li>
    2929<li>Import content from another system or WordPress site at <a href="%9$s" title="WordPress comes with importers for the most common publishing systems">Tools &#8250; Import</a></li>
     
    4848<ul>
    4949<li>Edit your personal information at <a href="%3$s" title="Edit settings like your password, your display name and your contact information">Users &#8250; Profile</a></li>
    50 <li>Start publishing at <a href="%4$s" title="Create a new post">Posts &#8250; Add New</a> and at <a href="%5$s" title="Create a new page">Pages &#8250; Add New</a></li>
    51 <li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins &#8250; Add New</a></li>
    52 <li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance &#8250; Add New Themes</a></li>
     50<li>Start publishing at <a href="%4$s" title="Create a new post">Posts &#8250; Add</a> and at <a href="%5$s" title="Create a new page">Pages &#8250; Add</a></li>
     51<li>Browse and install plugins at <a href="%6$s" title="Browse and install plugins at the official WordPress repository directly from your Dashboard">Plugins &#8250; Add</a></li>
     52<li>Browse and install themes at <a href="%7$s" title="Browse and install themes at the official WordPress repository directly from your Dashboard">Appearance &#8250; Add Themes</a></li>
    5353<li>Modify and prettify your website&#8217;s links at <a href="%8$s" title="For example, select a link structure like: http://example.com/1999/12/post-name">Settings &#8250; Permalinks</a></li>
    5454<li>Import content from another system or WordPress site at <a href="%9$s" title="WordPress comes with importers for the most common publishing systems">Tools &#8250; Import</a></li>
  • trunk/tests/phpunit/tests/l10n/wpTranslationsConvert.php

    r58235 r59784  
    399399
    400400                $this->assertSame( 'رونوشت‌ها فعال نشدند.', $controller->translate( 'Revisions not enabled.', '', 'unittest' ) );
    401                 $this->assertSame( 'افزودن جدید', $controller->translate( 'Add New', 'file', 'unittest' ) );
     401                $this->assertSame( 'افزودن', $controller->translate( 'Add', 'file', 'unittest' ) );
    402402
    403403                $this->assertSame( '%s دیدگاه', $controller->translate_plural( array( '%s comment', '%s comments' ), 0, '', 'unittest' ) );
  • trunk/tests/visual-regression/specs/visual-snapshots.test.js

    r56926 r59784  
    3636        } );
    3737
    38         test( 'Add New Media', async ({ admin, page }) => {
     38        test( 'Add Media', async ({ admin, page }) => {
    3939                await admin.visitAdminPage( '/media-new.php' );
    40                 await expect( page ).toHaveScreenshot( 'Add New Media.png', {
     40                await expect( page ).toHaveScreenshot( 'Add Media.png', {
    4141                        mask: elementsToHide.map( ( selector ) => page.locator( selector ) ),
    4242                });
     
    8585        } );
    8686
    87         test( 'Add New User', async ({ admin, page }) => {
     87        test( 'Add User', async ({ admin, page }) => {
    8888                await admin.visitAdminPage( '/user-new.php' );
    89                 await expect( page ).toHaveScreenshot( 'Add New User.png', {
     89                await expect( page ).toHaveScreenshot( 'Add User.png', {
    9090                        mask: [
    9191                                        ...elementsToHide,
Note: See TracChangeset for help on using the changeset viewer.