Skip to content

Commit 3f4d358

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59784 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6fea443 commit 3f4d358

33 files changed

+90
-87
lines changed

src/wp-admin/edit-link-form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
$nonce_action = 'update-bookmark_' . $link_id;
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';
2525
$nonce_action = 'add-bookmark';
@@ -87,7 +87,7 @@
8787
?>
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">
9393

src/wp-admin/includes/meta-boxes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,12 +1200,12 @@ function link_categories_meta_box( $link ) {
12001200
</div>
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>
12111211
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />

src/wp-admin/includes/template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
461461
<legend>
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

467467
<div id="replycontainer">
@@ -735,7 +735,7 @@ function meta_form( $post = null ) {
735735
natcasesort( $keys );
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>
741741
<tr>

src/wp-admin/link-add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
// Used in the HTML title tag.
17-
$title = __( 'Add New Link' );
17+
$title = __( 'Add Link' );
1818
$parent_file = 'link-manager.php';
1919

2020
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';

src/wp-admin/link-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
?>
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
107107
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {

src/wp-admin/menu.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

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;
7575
foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
7676
if ( ! $tax->show_ui || ! $tax->show_in_menu ) {
@@ -83,7 +83,7 @@
8383

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

8989
// $menu[20] = Pages.
@@ -302,7 +302,7 @@ function _add_plugin_file_editor_to_tools() {
302302
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' );
303303

304304
if ( ! 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.
308308
add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 );
@@ -323,19 +323,19 @@ function _add_plugin_file_editor_to_tools() {
323323
$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
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

331331
$submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
332332
} else {
333333
$_wp_real_parent_file['users.php'] = 'profile.php';
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
}
341341

src/wp-admin/network/menu.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@
5555
/* translators: Sites menu item. */
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

6464
if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
6565
$menu[15] = array(
@@ -83,7 +83,7 @@
8383
$menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
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

8989
if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
@@ -108,7 +108,7 @@
108108
$menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
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

114114
$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );

src/wp-admin/network/settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@
248248
</tr>
249249

250250
<tr id="addnewusers">
251-
<th scope="row"><?php _e( 'Add New Users' ); ?></th>
251+
<th scope="row"><?php _e( 'Add Users' ); ?></th>
252252
<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>
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>
256256

src/wp-admin/network/site-new.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
}
180180

181181
// Used in the HTML title tag.
182-
$title = __( 'Add New Site' );
182+
$title = __( 'Add Site' );
183183
$parent_file = 'sites.php';
184184

185185
wp_enqueue_script( 'user-suggest' );
@@ -189,7 +189,7 @@
189189
?>
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
194194
if ( ! empty( $messages ) ) {
195195
$notice_args = array(

src/wp-admin/network/site-users.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@
341341
/**
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
*
346349
* @param bool $bool Whether to show the Add New User form. Default true.
@@ -374,7 +377,7 @@
374377
</tr>
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; ?>
380383
</div>

0 commit comments

Comments
 (0)