mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-12 06:43:20 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@59784 git-svn-id: http://core.svn.wordpress.org/trunk@59126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
065a43f68d
commit
1498d000ba
@ -19,7 +19,7 @@ if ( ! empty( $link_id ) ) {
|
||||
$nonce_action = 'update-bookmark_' . $link_id;
|
||||
} else {
|
||||
/* translators: %s: URL to Links screen. */
|
||||
$heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
|
||||
$heading = sprintf( __( '<a href="%s">Links</a> / Add Link' ), 'link-manager.php' );
|
||||
$submit_text = __( 'Add Link' );
|
||||
$form_name = 'addlink';
|
||||
$nonce_action = 'add-bookmark';
|
||||
@ -87,7 +87,7 @@ echo esc_html( $title );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add Link' ); ?></a>
|
||||
|
||||
<hr class="wp-header-end">
|
||||
|
||||
|
@ -1200,12 +1200,12 @@ function link_categories_meta_box( $link ) {
|
||||
</div>
|
||||
|
||||
<div id="category-adder" class="wp-hidden-children">
|
||||
<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
|
||||
<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add Category' ); ?></a>
|
||||
<p id="link-category-add" class="wp-hidden-child">
|
||||
<label class="screen-reader-text" for="newcat">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( '+ Add New Category' );
|
||||
_e( '+ Add Category' );
|
||||
?>
|
||||
</label>
|
||||
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
||||
|
@ -461,7 +461,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
|
||||
<legend>
|
||||
<span class="hidden" id="editlegend"><?php _e( 'Edit Comment' ); ?></span>
|
||||
<span class="hidden" id="replyhead"><?php _e( 'Reply to Comment' ); ?></span>
|
||||
<span class="hidden" id="addhead"><?php _e( 'Add New Comment' ); ?></span>
|
||||
<span class="hidden" id="addhead"><?php _e( 'Add Comment' ); ?></span>
|
||||
</legend>
|
||||
|
||||
<div id="replycontainer">
|
||||
@ -735,7 +735,7 @@ function meta_form( $post = null ) {
|
||||
natcasesort( $keys );
|
||||
}
|
||||
?>
|
||||
<p><strong><?php _e( 'Add New Custom Field:' ); ?></strong></p>
|
||||
<p><strong><?php _e( 'Add Custom Field:' ); ?></strong></p>
|
||||
<table id="newmeta">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -14,7 +14,7 @@ if ( ! current_user_can( 'manage_links' ) ) {
|
||||
}
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Add New Link' );
|
||||
$title = __( 'Add Link' );
|
||||
$parent_file = 'link-manager.php';
|
||||
|
||||
$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
|
||||
|
@ -101,7 +101,7 @@ echo esc_html( $title );
|
||||
?>
|
||||
</h1>
|
||||
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
|
||||
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add Link' ); ?></a>
|
||||
|
||||
<?php
|
||||
if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
|
||||
|
@ -70,7 +70,7 @@ $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
|
||||
|
||||
$menu[10] = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
|
||||
$submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' );
|
||||
$submenu['upload.php'][10] = array( __( 'Add New Media File' ), 'upload_files', 'media-new.php' );
|
||||
$submenu['upload.php'][10] = array( __( 'Add Media File' ), 'upload_files', 'media-new.php' );
|
||||
$i = 15;
|
||||
foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
|
||||
if ( ! $tax->show_ui || ! $tax->show_in_menu ) {
|
||||
@ -83,7 +83,7 @@ foreach ( get_taxonomies_for_attachments( 'objects' ) as $tax ) {
|
||||
|
||||
$menu[15] = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
|
||||
$submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
|
||||
$submenu['link-manager.php'][10] = array( __( 'Add New Link' ), 'manage_links', 'link-add.php' );
|
||||
$submenu['link-manager.php'][10] = array( __( 'Add Link' ), 'manage_links', 'link-add.php' );
|
||||
$submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
|
||||
|
||||
// $menu[20] = Pages.
|
||||
@ -302,7 +302,7 @@ $menu[65] = array( sprintf( __( 'Plugins %s' ), $count ), 'activate_plugins', 'p
|
||||
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' );
|
||||
|
||||
if ( ! is_multisite() ) {
|
||||
$submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][10] = array( __( 'Add Plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
if ( wp_is_block_theme() ) {
|
||||
// Place the menu item below the Theme File Editor menu item.
|
||||
add_action( 'admin_menu', '_add_plugin_file_editor_to_tools', 101 );
|
||||
@ -323,9 +323,9 @@ if ( current_user_can( 'list_users' ) ) {
|
||||
$_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php.
|
||||
$submenu['users.php'][5] = array( __( 'All Users' ), 'list_users', 'users.php' );
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
$submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' );
|
||||
} elseif ( is_multisite() ) {
|
||||
$submenu['users.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add User' ), 'promote_users', 'user-new.php' );
|
||||
}
|
||||
|
||||
$submenu['users.php'][15] = array( __( 'Profile' ), 'read', 'profile.php' );
|
||||
@ -333,9 +333,9 @@ if ( current_user_can( 'list_users' ) ) {
|
||||
$_wp_real_parent_file['users.php'] = 'profile.php';
|
||||
$submenu['profile.php'][5] = array( __( 'Profile' ), 'read', 'profile.php' );
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||
$submenu['profile.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' );
|
||||
} elseif ( is_multisite() ) {
|
||||
$submenu['profile.php'][10] = array( __( 'Add New User' ), 'promote_users', 'user-new.php' );
|
||||
$submenu['profile.php'][10] = array( __( 'Add User' ), 'promote_users', 'user-new.php' );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -55,11 +55,11 @@ $menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
|
||||
/* translators: Sites menu item. */
|
||||
$menu[5] = array( __( 'Sites' ), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'dashicons-admin-multisite' );
|
||||
$submenu['sites.php'][5] = array( __( 'All Sites' ), 'manage_sites', 'sites.php' );
|
||||
$submenu['sites.php'][10] = array( __( 'Add New Site' ), 'create_sites', 'site-new.php' );
|
||||
$submenu['sites.php'][10] = array( __( 'Add Site' ), 'create_sites', 'site-new.php' );
|
||||
|
||||
$menu[10] = array( __( 'Users' ), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'dashicons-admin-users' );
|
||||
$submenu['users.php'][5] = array( __( 'All Users' ), 'manage_network_users', 'users.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add New User' ), 'create_users', 'user-new.php' );
|
||||
$submenu['users.php'][10] = array( __( 'Add User' ), 'create_users', 'user-new.php' );
|
||||
|
||||
if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
|
||||
$menu[15] = array(
|
||||
@ -83,7 +83,7 @@ if ( current_user_can( 'update_themes' ) && $update_data['counts']['themes'] ) {
|
||||
$menu[15] = array( __( 'Themes' ), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'dashicons-admin-appearance' );
|
||||
}
|
||||
$submenu['themes.php'][5] = array( __( 'Installed Themes' ), 'manage_network_themes', 'themes.php' );
|
||||
$submenu['themes.php'][10] = array( __( 'Add New Theme' ), 'install_themes', 'theme-install.php' );
|
||||
$submenu['themes.php'][10] = array( __( 'Add Theme' ), 'install_themes', 'theme-install.php' );
|
||||
$submenu['themes.php'][15] = array( __( 'Theme File Editor' ), 'edit_themes', 'theme-editor.php' );
|
||||
|
||||
if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] ) {
|
||||
@ -108,7 +108,7 @@ if ( current_user_can( 'update_plugins' ) && $update_data['counts']['plugins'] )
|
||||
$menu[20] = array( __( 'Plugins' ), 'manage_network_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
|
||||
}
|
||||
$submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'manage_network_plugins', 'plugins.php' );
|
||||
$submenu['plugins.php'][10] = array( __( 'Add New Plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][10] = array( __( 'Add Plugin' ), 'install_plugins', 'plugin-install.php' );
|
||||
$submenu['plugins.php'][15] = array( __( 'Plugin File Editor' ), 'edit_plugins', 'plugin-editor.php' );
|
||||
|
||||
$menu[25] = array( __( 'Settings' ), 'manage_network_options', 'settings.php', '', 'menu-top menu-icon-settings', 'menu-settings', 'dashicons-admin-settings' );
|
||||
|
@ -248,9 +248,9 @@ if ( isset( $_GET['updated'] ) ) {
|
||||
</tr>
|
||||
|
||||
<tr id="addnewusers">
|
||||
<th scope="row"><?php _e( 'Add New Users' ); ?></th>
|
||||
<th scope="row"><?php _e( 'Add Users' ); ?></th>
|
||||
<td>
|
||||
<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 → Add New User" page' ); ?></label>
|
||||
<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 → Add User" page' ); ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -179,7 +179,7 @@ if ( isset( $_GET['update'] ) ) {
|
||||
}
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Add New Site' );
|
||||
$title = __( 'Add Site' );
|
||||
$parent_file = 'sites.php';
|
||||
|
||||
wp_enqueue_script( 'user-suggest' );
|
||||
@ -189,7 +189,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1 id="add-new-site"><?php _e( 'Add New Site' ); ?></h1>
|
||||
<h1 id="add-new-site"><?php _e( 'Add Site' ); ?></h1>
|
||||
<?php
|
||||
if ( ! empty( $messages ) ) {
|
||||
$notice_args = array(
|
||||
|
@ -341,6 +341,9 @@ if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_us
|
||||
/**
|
||||
* Filters whether to show the Add New User form on the Multisite Users screen.
|
||||
*
|
||||
* Note: While WordPress is moving towards simplifying labels by removing "New" from "Add New X" labels,
|
||||
* we keep "Add New User" here to maintain a clear distinction from the "Add Existing User" section above.
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @param bool $bool Whether to show the Add New User form. Default true.
|
||||
@ -374,7 +377,7 @@ if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use
|
||||
</tr>
|
||||
</table>
|
||||
<?php wp_nonce_field( 'add-user', '_wpnonce_add-new-user' ); ?>
|
||||
<?php submit_button( __( 'Add New User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-user' ) ); ?>
|
||||
<?php submit_button( __( 'Add User' ), 'primary', 'add-user', true, array( 'id' => 'submit-add-user' ) ); ?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
@ -28,7 +28,7 @@ get_current_screen()->add_help_tab(
|
||||
'id' => 'overview',
|
||||
'title' => __( 'Overview' ),
|
||||
'content' =>
|
||||
'<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>' .
|
||||
'<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>' .
|
||||
'<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>' .
|
||||
'<p>' . __( 'Hovering over each site reveals seven options (three for the primary site):' ) . '</p>' .
|
||||
'<ul><li>' . __( 'An Edit link to a separate Edit Site screen.' ) . '</li>' .
|
||||
@ -388,7 +388,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<h1 class="wp-heading-inline"><?php _e( 'Sites' ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'create_sites' ) ) : ?>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Site' ); ?></a>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'site-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Site' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
@ -363,7 +363,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
|
||||
|
||||
<?php if ( current_user_can( 'install_themes' ) ) : ?>
|
||||
<a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add New Theme' ); ?></a>
|
||||
<a href="theme-install.php" class="page-title-action"><?php echo esc_html__( 'Add Theme' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Add New User network administration panel.
|
||||
* Add User network administration panel.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Multisite
|
||||
@ -97,14 +97,14 @@ if ( isset( $_GET['update'] ) ) {
|
||||
}
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Add New User' );
|
||||
$title = __( 'Add User' );
|
||||
$parent_file = 'users.php';
|
||||
|
||||
require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>
|
||||
<h1 id="add-new-user"><?php _e( 'Add User' ); ?></h1>
|
||||
<?php
|
||||
if ( '' !== $message ) {
|
||||
wp_admin_notice(
|
||||
|
@ -289,7 +289,7 @@ if ( isset( $_REQUEST['updated'] ) && 'true' === $_REQUEST['updated'] && ! empty
|
||||
<?php
|
||||
if ( current_user_can( 'create_users' ) ) :
|
||||
?>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
|
||||
<a href="<?php echo esc_url( network_admin_url( 'user-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add User' ); ?></a>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
|
@ -566,7 +566,7 @@ get_current_screen()->add_help_tab(
|
||||
'<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
|
||||
'<p>' . sprintf(
|
||||
/* translators: %s: WordPress Plugin Directory URL. */
|
||||
__( 'If you would like to see more plugins to choose from, click on the “Add New Plugin” 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!' ),
|
||||
__( 'If you would like to see more plugins to choose from, click on the “Add Plugin” 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!' ),
|
||||
__( 'https://wordpress.org/plugins/' )
|
||||
) . '</p>',
|
||||
)
|
||||
@ -767,7 +767,7 @@ echo esc_html( $title );
|
||||
<?php
|
||||
if ( ( ! is_multisite() || is_network_admin() ) && current_user_can( 'install_plugins' ) ) {
|
||||
?>
|
||||
<a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Plugin' ); ?></a>
|
||||
<a href="<?php echo esc_url( self_admin_url( 'plugin-install.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Plugin' ); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ wp_localize_script(
|
||||
'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ),
|
||||
),
|
||||
'l10n' => array(
|
||||
'addNew' => __( 'Add New Theme' ),
|
||||
'addNew' => __( 'Add Theme' ),
|
||||
'search' => __( 'Search Themes' ),
|
||||
'upload' => __( 'Upload Theme' ),
|
||||
'back' => __( 'Back' ),
|
||||
|
@ -153,7 +153,7 @@ if ( current_user_can( 'install_themes' ) ) {
|
||||
} else {
|
||||
$help_install = '<p>' . sprintf(
|
||||
/* translators: %s: https://wordpress.org/themes/ */
|
||||
__( 'If you would like to see more themes to choose from, click on the “Add New Theme” 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!' ),
|
||||
__( 'If you would like to see more themes to choose from, click on the “Add Theme” 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!' ),
|
||||
__( 'https://wordpress.org/themes/' )
|
||||
) . '</p>';
|
||||
}
|
||||
@ -231,7 +231,7 @@ wp_localize_script(
|
||||
'adminUrl' => parse_url( admin_url(), PHP_URL_PATH ),
|
||||
),
|
||||
'l10n' => array(
|
||||
'addNew' => __( 'Add New Theme' ),
|
||||
'addNew' => __( 'Add Theme' ),
|
||||
'search' => __( 'Search installed themes' ),
|
||||
/* translators: %d: Number of themes. */
|
||||
'themesFound' => __( 'Number of Themes found: %d' ),
|
||||
@ -252,7 +252,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<span class="title-count theme-count"><?php echo ! empty( $_GET['search'] ) ? __( '…' ) : count( $themes ); ?></span>
|
||||
</h1>
|
||||
<?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?>
|
||||
<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>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
<hr class="wp-header-end">
|
||||
<form class="search-form search-themes"><p class="search-box"></p></form>
|
||||
|
@ -212,7 +212,7 @@ if ( 'grid' === $mode ) {
|
||||
<?php
|
||||
if ( current_user_can( 'upload_files' ) ) {
|
||||
?>
|
||||
<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>
|
||||
<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>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@ -419,7 +419,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
<?php
|
||||
if ( current_user_can( 'upload_files' ) ) {
|
||||
?>
|
||||
<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Media File' ); ?></a>
|
||||
<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Media File' ); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,7 @@ switch ( $action ) {
|
||||
|
||||
<?php if ( ! IS_PROFILE_PAGE ) : ?>
|
||||
<?php if ( current_user_can( 'create_users' ) ) : ?>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add New User' ); ?></a>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add User' ); ?></a>
|
||||
<?php elseif ( is_multisite() && current_user_can( 'promote_users' ) ) : ?>
|
||||
<a href="user-new.php" class="page-title-action"><?php echo esc_html__( 'Add Existing User' ); ?></a>
|
||||
<?php endif; ?>
|
||||
@ -832,7 +832,7 @@ switch ( $action ) {
|
||||
do_action( 'wp_create_application_password_form', $profile_user );
|
||||
?>
|
||||
|
||||
<button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add New Application Password' ); ?></button>
|
||||
<button type="button" name="do_new_application_password" id="do_new_application_password" class="button button-secondary"><?php _e( 'Add Application Password' ); ?></button>
|
||||
</div>
|
||||
<?php
|
||||
else :
|
||||
|
@ -261,7 +261,7 @@ Please click the following link to confirm the invite:
|
||||
}
|
||||
|
||||
// Used in the HTML title tag.
|
||||
$title = __( 'Add New User' );
|
||||
$title = __( 'Add User' );
|
||||
$parent_file = 'users.php';
|
||||
|
||||
$do_both = false;
|
||||
@ -269,7 +269,7 @@ if ( is_multisite() && current_user_can( 'promote_users' ) && current_user_can(
|
||||
$do_both = true;
|
||||
}
|
||||
|
||||
$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>';
|
||||
$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>';
|
||||
|
||||
if ( is_multisite() ) {
|
||||
$help .= '<p>' . __( 'Because this is a multisite installation, you may add accounts that already exist on the Network by specifying a username or email, and defining a role. For more options, such as specifying a password, you have to be a Network Administrator and use the hover link under an existing user’s name to Edit the user profile under Network Admin > All Users.' ) . '</p>' .
|
||||
@ -280,7 +280,7 @@ if ( is_multisite() ) {
|
||||
'<p>' . __( 'By default, new users will receive an email letting them know they’ve been added as a user for your site. This email will also contain a password reset link. Uncheck the box if you do not want to send the new user a welcome email.' ) . '</p>';
|
||||
}
|
||||
|
||||
$help .= '<p>' . __( 'Remember to click the Add New User button at the bottom of this screen when you are finished.' ) . '</p>';
|
||||
$help .= '<p>' . __( 'Remember to click the Add User button at the bottom of this screen when you are finished.' ) . '</p>';
|
||||
|
||||
get_current_screen()->add_help_tab(
|
||||
array(
|
||||
@ -383,7 +383,7 @@ if ( isset( $_GET['update'] ) ) {
|
||||
<h1 id="add-new-user">
|
||||
<?php
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
_e( 'Add New User' );
|
||||
_e( 'Add User' );
|
||||
} elseif ( current_user_can( 'promote_users' ) ) {
|
||||
_e( 'Add Existing User' );
|
||||
}
|
||||
@ -507,7 +507,7 @@ if ( is_multisite() && current_user_can( 'promote_users' ) ) {
|
||||
|
||||
if ( current_user_can( 'create_users' ) ) {
|
||||
if ( $do_both ) {
|
||||
echo '<h2 id="create-new-user">' . __( 'Add New User' ) . '</h2>';
|
||||
echo '<h2 id="create-new-user">' . __( 'Add User' ) . '</h2>';
|
||||
}
|
||||
?>
|
||||
<p><?php _e( 'Create a brand new user and add them to this site.' ); ?></p>
|
||||
@ -659,7 +659,7 @@ if ( current_user_can( 'create_users' ) ) {
|
||||
do_action( 'user_new_form', 'add-new-user' );
|
||||
?>
|
||||
|
||||
<?php submit_button( __( 'Add New User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?>
|
||||
<?php submit_button( __( 'Add User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?>
|
||||
|
||||
</form>
|
||||
<?php } // End if current_user_can( 'create_users' ). ?>
|
||||
|
@ -33,7 +33,7 @@ get_current_screen()->add_help_tab(
|
||||
'id' => 'overview',
|
||||
'title' => __( 'Overview' ),
|
||||
'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>' .
|
||||
'<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>',
|
||||
'<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>',
|
||||
)
|
||||
);
|
||||
|
||||
@ -778,7 +778,7 @@ 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__( 'Add New User' )
|
||||
esc_html__( 'Add User' )
|
||||
);
|
||||
} elseif ( is_multisite() && current_user_can( 'promote_users' ) ) {
|
||||
printf(
|
||||
|
@ -636,7 +636,7 @@ class WP_Customize_Control {
|
||||
<?php if ( $this->allow_addition && current_user_can( 'publish_pages' ) && current_user_can( 'edit_theme_options' ) ) : // Currently tied to menus functionality. ?>
|
||||
<button type="button" class="button-link add-new-toggle">
|
||||
<?php
|
||||
/* translators: %s: Add New Page label. */
|
||||
/* translators: %s: Add Page label. */
|
||||
printf( __( '+ %s' ), get_post_type_object( 'page' )->labels->add_new_item );
|
||||
?>
|
||||
</button>
|
||||
|
@ -989,8 +989,8 @@ final class WP_Post_Type {
|
||||
self::$default_labels = array(
|
||||
'name' => array( _x( 'Posts', 'post type general name' ), _x( 'Pages', 'post type general name' ) ),
|
||||
'singular_name' => array( _x( 'Post', 'post type singular name' ), _x( 'Page', 'post type singular name' ) ),
|
||||
'add_new' => array( __( 'Add New' ), __( 'Add New' ) ),
|
||||
'add_new_item' => array( __( 'Add New Post' ), __( 'Add New Page' ) ),
|
||||
'add_new' => array( __( 'Add' ), __( 'Add New' ) ),
|
||||
'add_new_item' => array( __( 'Add Post' ), __( 'Add New Page' ) ),
|
||||
'edit_item' => array( __( 'Edit Post' ), __( 'Edit Page' ) ),
|
||||
'new_item' => array( __( 'New Post' ), __( 'New Page' ) ),
|
||||
'view_item' => array( __( 'View Post' ), __( 'View Page' ) ),
|
||||
|
@ -624,7 +624,7 @@ final class WP_Taxonomy {
|
||||
'edit_item' => array( __( 'Edit Tag' ), __( 'Edit Category' ) ),
|
||||
'view_item' => array( __( 'View Tag' ), __( 'View Category' ) ),
|
||||
'update_item' => array( __( 'Update Tag' ), __( 'Update Category' ) ),
|
||||
'add_new_item' => array( __( 'Add New Tag' ), __( 'Add New Category' ) ),
|
||||
'add_new_item' => array( __( 'Add Tag' ), __( 'Add New Category' ) ),
|
||||
'new_item_name' => array( __( 'New Tag Name' ), __( 'New Category Name' ) ),
|
||||
'separate_items_with_commas' => array( __( 'Separate tags with commas' ), null ),
|
||||
'add_or_remove_items' => array( __( 'Add or remove tags' ), null ),
|
||||
|
@ -212,23 +212,23 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||
<p class="customizer-section-intro customize-control-description">
|
||||
<?php
|
||||
if ( current_theme_supports( 'custom-header', 'video' ) ) {
|
||||
_e( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' );
|
||||
_e( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image that matches the size of your video — you’ll be able to crop your image once you upload it for a perfect fit.' );
|
||||
} elseif ( $width && $height ) {
|
||||
printf(
|
||||
/* translators: %s: Header size in pixels. */
|
||||
__( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
|
||||
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header size of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
|
||||
sprintf( '<strong>%s × %s</strong>', $width, $height )
|
||||
);
|
||||
} elseif ( $width ) {
|
||||
printf(
|
||||
/* translators: %s: Header width in pixels. */
|
||||
__( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
|
||||
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header width of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
|
||||
sprintf( '<strong>%s</strong>', $width )
|
||||
);
|
||||
} else {
|
||||
printf(
|
||||
/* translators: %s: Header height in pixels. */
|
||||
__( 'Click “Add New Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
|
||||
__( 'Click “Add Image” to upload an image file from your computer. Your theme works best with an image with a header height of %s pixels — you’ll be able to crop your image once you upload it for a perfect fit.' ),
|
||||
sprintf( '<strong>%s</strong>', $height )
|
||||
);
|
||||
}
|
||||
@ -246,7 +246,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control {
|
||||
<div class="actions">
|
||||
<?php if ( current_user_can( 'upload_files' ) ) : ?>
|
||||
<button type="button"<?php echo $visibility; ?> class="button remove" aria-label="<?php esc_attr_e( 'Hide header image' ); ?>"><?php _e( 'Hide image' ); ?></button>
|
||||
<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>
|
||||
<button type="button" class="button new" id="header_image-button" aria-label="<?php esc_attr_e( 'Add Header Image' ); ?>"><?php _e( 'Add Image' ); ?></button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="choices">
|
||||
|
@ -223,7 +223,7 @@ function wp_print_media_templates() {
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<?php // Template for the inline uploader, used for example in the Media Library admin page - Add New. ?>
|
||||
<?php // Template for the inline uploader, used for example in the Media Library admin page - Add. ?>
|
||||
<script type="text/html" id="tmpl-uploader-inline">
|
||||
<# var messageClass = data.message ? 'has-upload-message' : 'no-upload-message'; #>
|
||||
<# if ( data.canClose ) { #>
|
||||
|
@ -75,7 +75,7 @@ function create_initial_post_types() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Media', 'post type general name' ),
|
||||
'name_admin_bar' => _x( 'Media', 'add new from admin bar' ),
|
||||
'add_new' => __( 'Add New Media File' ),
|
||||
'add_new' => __( 'Add Media File' ),
|
||||
'edit_item' => __( 'Edit Media' ),
|
||||
'view_item' => ( '1' === get_option( 'wp_attachment_pages_enabled' ) ) ? __( 'View Attachment Page' ) : __( 'View Media File' ),
|
||||
'attributes' => __( 'Attachment Attributes' ),
|
||||
@ -202,8 +202,8 @@ function create_initial_post_types() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Changesets', 'post type general name' ),
|
||||
'singular_name' => _x( 'Changeset', 'post type singular name' ),
|
||||
'add_new' => __( 'Add New Changeset' ),
|
||||
'add_new_item' => __( 'Add New Changeset' ),
|
||||
'add_new' => __( 'Add Changeset' ),
|
||||
'add_new_item' => __( 'Add Changeset' ),
|
||||
'new_item' => __( 'New Changeset' ),
|
||||
'edit_item' => __( 'Edit Changeset' ),
|
||||
'view_item' => __( 'View Changeset' ),
|
||||
@ -284,8 +284,8 @@ function create_initial_post_types() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Patterns', 'post type general name' ),
|
||||
'singular_name' => _x( 'Pattern', 'post type singular name' ),
|
||||
'add_new' => __( 'Add New Pattern' ),
|
||||
'add_new_item' => __( 'Add New Pattern' ),
|
||||
'add_new' => __( 'Add Pattern' ),
|
||||
'add_new_item' => __( 'Add Pattern' ),
|
||||
'new_item' => __( 'New Pattern' ),
|
||||
'edit_item' => __( 'Edit Block Pattern' ),
|
||||
'view_item' => __( 'View Pattern' ),
|
||||
@ -350,8 +350,8 @@ function create_initial_post_types() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Templates', 'post type general name' ),
|
||||
'singular_name' => _x( 'Template', 'post type singular name' ),
|
||||
'add_new' => __( 'Add New Template' ),
|
||||
'add_new_item' => __( 'Add New Template' ),
|
||||
'add_new' => __( 'Add Template' ),
|
||||
'add_new_item' => __( 'Add Template' ),
|
||||
'new_item' => __( 'New Template' ),
|
||||
'edit_item' => __( 'Edit Template' ),
|
||||
'view_item' => __( 'View Template' ),
|
||||
@ -415,8 +415,8 @@ function create_initial_post_types() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Template Parts', 'post type general name' ),
|
||||
'singular_name' => _x( 'Template Part', 'post type singular name' ),
|
||||
'add_new' => __( 'Add New Template Part' ),
|
||||
'add_new_item' => __( 'Add New Template Part' ),
|
||||
'add_new' => __( 'Add Template Part' ),
|
||||
'add_new_item' => __( 'Add Template Part' ),
|
||||
'new_item' => __( 'New Template Part' ),
|
||||
'edit_item' => __( 'Edit Template Part' ),
|
||||
'view_item' => __( 'View Template Part' ),
|
||||
@ -522,8 +522,8 @@ function create_initial_post_types() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Navigation Menus', 'post type general name' ),
|
||||
'singular_name' => _x( 'Navigation Menu', 'post type singular name' ),
|
||||
'add_new' => __( 'Add New Navigation Menu' ),
|
||||
'add_new_item' => __( 'Add New Navigation Menu' ),
|
||||
'add_new' => __( 'Add Navigation Menu' ),
|
||||
'add_new_item' => __( 'Add Navigation Menu' ),
|
||||
'new_item' => __( 'New Navigation Menu' ),
|
||||
'edit_item' => __( 'Edit Navigation Menu' ),
|
||||
'view_item' => __( 'View Navigation Menu' ),
|
||||
@ -2026,8 +2026,8 @@ function _post_type_meta_capabilities( $capabilities = null ) {
|
||||
* - `name` - General name for the post type, usually plural. The same and overridden
|
||||
* by `$post_type_object->label`. Default is 'Posts' / 'Pages'.
|
||||
* - `singular_name` - Name for one object of this post type. Default is 'Post' / 'Page'.
|
||||
* - `add_new` - Label for adding a new item. Default is 'Add New' / 'Add New'.
|
||||
* - `add_new_item` - Label for adding a new singular item. Default is 'Add New Post' / 'Add New Page'.
|
||||
* - `add_new` - Label for adding a new item. Default is 'Add Post' / 'Add Page'.
|
||||
* - `add_new_item` - Label for adding a new singular item. Default is 'Add Post' / 'Add Page'.
|
||||
* - `edit_item` - Label for editing a singular item. Default is 'Edit Post' / 'Edit Page'.
|
||||
* - `new_item` - Label for the new item page title. Default is 'New Post' / 'New Page'.
|
||||
* - `view_item` - Label for viewing a singular item. Default is 'View Post' / 'View Page'.
|
||||
|
@ -146,7 +146,7 @@ function create_initial_taxonomies() {
|
||||
'all_items' => __( 'All Link Categories' ),
|
||||
'edit_item' => __( 'Edit Link Category' ),
|
||||
'update_item' => __( 'Update Link Category' ),
|
||||
'add_new_item' => __( 'Add New Link Category' ),
|
||||
'add_new_item' => __( 'Add Link Category' ),
|
||||
'new_item_name' => __( 'New Link Category Name' ),
|
||||
'separate_items_with_commas' => null,
|
||||
'add_or_remove_items' => null,
|
||||
@ -233,7 +233,7 @@ function create_initial_taxonomies() {
|
||||
'labels' => array(
|
||||
'name' => _x( 'Pattern Categories', 'taxonomy general name' ),
|
||||
'singular_name' => _x( 'Pattern Category', 'taxonomy singular name' ),
|
||||
'add_new_item' => __( 'Add New Category' ),
|
||||
'add_new_item' => __( 'Add Category' ),
|
||||
'add_or_remove_items' => __( 'Add or remove pattern categories' ),
|
||||
'back_to_items' => __( '← Go to Pattern Categories' ),
|
||||
'choose_from_most_used' => __( 'Choose from the most used pattern categories' ),
|
||||
@ -678,7 +678,7 @@ function unregister_taxonomy( $taxonomy ) {
|
||||
* @type string $edit_item Default 'Edit Tag'/'Edit Category'.
|
||||
* @type string $view_item Default 'View Tag'/'View Category'.
|
||||
* @type string $update_item Default 'Update Tag'/'Update Category'.
|
||||
* @type string $add_new_item Default 'Add New Tag'/'Add New Category'.
|
||||
* @type string $add_new_item Default 'Add Tag'/'Add Category'.
|
||||
* @type string $new_item_name Default 'New Tag Name'/'New Category Name'.
|
||||
* @type string $template_name Default 'Tag Archives'/'Category Archives'.
|
||||
* @type string $separate_items_with_commas This label is only used for non-hierarchical taxonomies. Default
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59783';
|
||||
$wp_version = '6.8-alpha-59784';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user