mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 15:16:59 +00:00
Drop the hyphen from e-mail and standardize on email.
The AP Stylebook changed this in 2011, and we're woefully inconsistent, so let's go with the standard. props morganestes, voldemortensen, niallkennedy (for patching on the previous AP style). fixes #26156. git-svn-id: https://develop.svn.wordpress.org/trunk@33774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -166,7 +166,7 @@ if ( $comment->comment_approved != '0' ) { // if not unapproved
|
||||
</tr>
|
||||
<?php if ( $comment->comment_author_email ) { ?>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('E-mail'); ?></th>
|
||||
<th scope="row"><?php _e('Email'); ?></th>
|
||||
<td><?php echo $comment->comment_author_email; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@@ -33,7 +33,7 @@ if ( !defined('ABSPATH') )
|
||||
<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="first"><label for="email"><?php _e( 'E-mail:' ); ?></label></td>
|
||||
<td class="first"><label for="email"><?php _e( 'Email:' ); ?></label></td>
|
||||
<td>
|
||||
<input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" />
|
||||
</td>
|
||||
|
||||
@@ -146,7 +146,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'username' => __( 'Username' ),
|
||||
'name' => __( 'Name' ),
|
||||
'email' => __( 'E-mail' ),
|
||||
'email' => __( 'Email' ),
|
||||
'registered' => _x( 'Registered', 'user' ),
|
||||
'blogs' => __( 'Sites' )
|
||||
);
|
||||
|
||||
@@ -270,7 +270,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
'cb' => '<input type="checkbox" />',
|
||||
'username' => __( 'Username' ),
|
||||
'name' => __( 'Name' ),
|
||||
'email' => __( 'E-mail' ),
|
||||
'email' => __( 'Email' ),
|
||||
'role' => __( 'Role' ),
|
||||
'posts' => __( 'Posts' )
|
||||
);
|
||||
|
||||
@@ -895,7 +895,7 @@ function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam
|
||||
|
||||
$site_user = get_user_by( 'email', $email );
|
||||
if ( ! is_email( $email ) )
|
||||
$errors->add( 'invalid_email', __( 'You must provide a valid e-mail address.' ) );
|
||||
$errors->add( 'invalid_email', __( 'You must provide a valid email address.' ) );
|
||||
|
||||
if ( $errors->get_error_code() )
|
||||
return $errors;
|
||||
|
||||
@@ -491,7 +491,7 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
|
||||
</div>
|
||||
|
||||
<div class="inside">
|
||||
<label for="author-email"><?php _e('E-mail') ?></label>
|
||||
<label for="author-email"><?php _e('Email') ?></label>
|
||||
<input type="text" name="newcomment_author_email" size="50" value="" id="author-email" />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -149,9 +149,9 @@ function edit_user( $user_id = 0 ) {
|
||||
if ( !$update && username_exists( $user->user_login ) )
|
||||
$errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ));
|
||||
|
||||
/* checking e-mail address */
|
||||
/* checking email address */
|
||||
if ( empty( $user->user_email ) ) {
|
||||
$errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) );
|
||||
$errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) );
|
||||
} elseif ( !is_email( $user->user_email ) ) {
|
||||
$errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ), array( 'form-field' => 'email' ) );
|
||||
} elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) {
|
||||
|
||||
@@ -172,7 +172,7 @@ function display_setup_form( $error = null ) {
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th>
|
||||
<th scope="row"><label for="admin_email"><?php _e( 'Your Email' ); ?></label></th>
|
||||
<td><input name="admin_email" type="email" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" />
|
||||
<p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td>
|
||||
</tr>
|
||||
@@ -293,7 +293,7 @@ switch($step) {
|
||||
$admin_email = isset( $_POST['admin_email'] ) ?trim( wp_unslash( $_POST['admin_email'] ) ) : '';
|
||||
$public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 0;
|
||||
|
||||
// Check e-mail address.
|
||||
// Check email address.
|
||||
$error = false;
|
||||
if ( empty( $user_name ) ) {
|
||||
// TODO: poka-yoke
|
||||
|
||||
@@ -78,7 +78,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Other comment settings'); ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend>
|
||||
<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail'); ?></label>
|
||||
<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and email'); ?></label>
|
||||
<br />
|
||||
<label for="comment_registration">
|
||||
<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> />
|
||||
@@ -144,8 +144,8 @@ printf( __('Comments should be displayed with the %s comments at the top of each
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><?php _e('E-mail me whenever'); ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever'); ?></span></legend>
|
||||
<th scope="row"><?php _e('Email me whenever'); ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Email me whenever'); ?></span></legend>
|
||||
<label for="comments_notify">
|
||||
<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> />
|
||||
<?php _e('Anyone posts a comment'); ?> </label>
|
||||
@@ -170,7 +170,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend>
|
||||
<p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="number" step="1" min="0" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ); ?></label></p>
|
||||
|
||||
<p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>
|
||||
<p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>
|
||||
<p>
|
||||
<textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea>
|
||||
</p>
|
||||
@@ -179,7 +179,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
|
||||
<tr>
|
||||
<th scope="row"><?php _e('Comment Blacklist'); ?></th>
|
||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend>
|
||||
<p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>
|
||||
<p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, email, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.'); ?></label></p>
|
||||
<p>
|
||||
<textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea>
|
||||
</p>
|
||||
@@ -235,7 +235,7 @@ endforeach;
|
||||
<th scope="row"><?php _e('Default Avatar'); ?></th>
|
||||
<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend>
|
||||
|
||||
<?php _e('For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.'); ?><br />
|
||||
<?php _e('For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.'); ?><br />
|
||||
|
||||
<?php
|
||||
$avatar_defaults = array(
|
||||
|
||||
@@ -135,7 +135,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
<p class="description" id="home-description"><?php _e( 'Enter the address here if you <a href="https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">want your site home page to be different from your WordPress installation directory.</a>' ); ?></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th>
|
||||
<th scope="row"><label for="admin_email"><?php _e('Email Address') ?> </label></th>
|
||||
<td><input name="admin_email" type="email" id="admin_email" aria-describedby="admin-email-description" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" />
|
||||
<p class="description" id="admin-email-description"><?php _e( 'This address is used for admin purposes, like new user notification.' ) ?></p></td>
|
||||
</tr>
|
||||
@@ -154,14 +154,14 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||
</tr>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th>
|
||||
<th scope="row"><label for="new_admin_email"><?php _e('Email Address') ?> </label></th>
|
||||
<td><input name="new_admin_email" type="email" id="new_admin_email" aria-describedby="new-admin-email-description" value="<?php form_option( 'admin_email' ); ?>" class="regular-text ltr" />
|
||||
<p class="description" id="new-admin-email-description"><?php _e( 'This address is used for admin purposes. If you change this we will send you an e-mail at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ) ?></p>
|
||||
<p class="description" id="new-admin-email-description"><?php _e( 'This address is used for admin purposes. If you change this we will send you an email at your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ) ?></p>
|
||||
<?php
|
||||
$new_admin_email = get_option( 'new_admin_email' );
|
||||
if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?>
|
||||
<div class="updated inline">
|
||||
<p><?php printf( __('There is a pending change of the admin e-mail to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p>
|
||||
<p><?php printf( __('There is a pending change of the admin email to <code>%1$s</code>. <a href="%2$s">Cancel</a>'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
|
||||
@@ -27,7 +27,7 @@ if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
||||
get_current_screen()->add_help_tab( array(
|
||||
'id' => 'options-postemail',
|
||||
'title' => __( 'Post Via Email' ),
|
||||
'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret e-mail account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '</p>',
|
||||
'content' => '<p>' . __( 'Post via email settings allow you to send your WordPress install an email with the content of your post. You must set up a secret email account with POP3 access to use this, and any mail received at this address will be posted, so it’s a good idea to keep this address very secret.' ) . '</p>',
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -113,8 +113,8 @@ do_settings_fields('writing', 'remote_publishing'); // A deprecated section.
|
||||
/** This filter is documented in wp-admin/options.php */
|
||||
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
||||
?>
|
||||
<h3 class="title"><?php _e('Post via e-mail') ?></h3>
|
||||
<p><?php printf(__('To post to WordPress by e-mail you must set up a secret e-mail account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
|
||||
<h3 class="title"><?php _e('Post via email') ?></h3>
|
||||
<p><?php printf(__('To post to WordPress by email you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: <kbd>%s</kbd>, <kbd>%s</kbd>, <kbd>%s</kbd>.'), wp_generate_password(8, false), wp_generate_password(8, false), wp_generate_password(8, false)) ?></p>
|
||||
|
||||
<table class="form-table">
|
||||
<tr>
|
||||
|
||||
@@ -396,7 +396,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
|
||||
|
||||
<table class="form-table">
|
||||
<tr class="user-email-wrap">
|
||||
<th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
|
||||
<th><label for="email"><?php _e('Email'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
|
||||
<td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text ltr" />
|
||||
<?php
|
||||
$new_email = get_option( $current_user->ID . '_new_email' );
|
||||
@@ -404,7 +404,7 @@ if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c
|
||||
<div class="updated inline">
|
||||
<p><?php
|
||||
printf(
|
||||
__( 'There is a pending change of your e-mail to %1$s. <a href="%2$s">Cancel</a>' ),
|
||||
__( 'There is a pending change of your email to %1$s. <a href="%2$s">Cancel</a>' ),
|
||||
'<code>' . $new_email['newemail'] . '</code>',
|
||||
esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) )
|
||||
); ?></p>
|
||||
|
||||
@@ -289,11 +289,11 @@ if ( is_multisite() ) {
|
||||
echo '<h3 id="add-existing-user">' . __('Add Existing User') . '</h3>';
|
||||
if ( !is_super_admin() ) {
|
||||
echo '<p>' . __( 'Enter the email address of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) . '</p>';
|
||||
$label = __('E-mail');
|
||||
$label = __('Email');
|
||||
$type = 'email';
|
||||
} else {
|
||||
echo '<p>' . __( 'Enter the email address or username of an existing user on this network to invite them to this site. That person will be sent an email asking them to confirm the invite.' ) . '</p>';
|
||||
$label = __('E-mail or Username');
|
||||
$label = __('Email or Username');
|
||||
$type = 'text';
|
||||
}
|
||||
?>
|
||||
@@ -377,7 +377,7 @@ $new_user_ignore_pass = $creating && isset( $_POST['noconfirmation'] ) ? wp_unsl
|
||||
<td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr( $new_user_login ); ?>" aria-required="true" autocapitalize="none" autocorrect="off" /></td>
|
||||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
|
||||
<th scope="row"><label for="email"><?php _e('Email'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th>
|
||||
<td><input name="email" type="email" id="email" value="<?php echo esc_attr( $new_user_email ); ?>" /></td>
|
||||
</tr>
|
||||
<?php if ( !is_multisite() ) { ?>
|
||||
|
||||
Reference in New Issue
Block a user