diff --git src/wp-admin/comment.php src/wp-admin/comment.php
index 7131a0c..d83cb53 100644
|
|
if ( $comment->comment_approved != '0' ) { // if not unapproved |
166 | 166 | </tr> |
167 | 167 | <?php if ( $comment->comment_author_email ) { ?> |
168 | 168 | <tr> |
169 | | <th scope="row"><?php _e('E-mail'); ?></th> |
| 169 | <th scope="row"><?php _e('Email'); ?></th> |
170 | 170 | <td><?php echo $comment->comment_author_email; ?></td> |
171 | 171 | </tr> |
172 | 172 | <?php } ?> |
diff --git src/wp-admin/edit-form-comment.php src/wp-admin/edit-form-comment.php
index 9b8062d..e1e9599 100644
|
|
if ( !defined('ABSPATH') ) |
33 | 33 | <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td> |
34 | 34 | </tr> |
35 | 35 | <tr> |
36 | | <td class="first"><label for="email"><?php _e( 'E-mail:' ); ?></label></td> |
| 36 | <td class="first"><label for="email"><?php _e( 'Email:' ); ?></label></td> |
37 | 37 | <td> |
38 | 38 | <input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" /> |
39 | 39 | </td> |
diff --git src/wp-admin/includes/class-wp-ms-users-list-table.php src/wp-admin/includes/class-wp-ms-users-list-table.php
index 39dadc7..f0c9319 100644
|
|
class WP_MS_Users_List_Table extends WP_List_Table { |
146 | 146 | 'cb' => '<input type="checkbox" />', |
147 | 147 | 'username' => __( 'Username' ), |
148 | 148 | 'name' => __( 'Name' ), |
149 | | 'email' => __( 'E-mail' ), |
| 149 | 'email' => __( 'Email' ), |
150 | 150 | 'registered' => _x( 'Registered', 'user' ), |
151 | 151 | 'blogs' => __( 'Sites' ) |
152 | 152 | ); |
diff --git src/wp-admin/includes/class-wp-users-list-table.php src/wp-admin/includes/class-wp-users-list-table.php
index 0b8c966..f6c3fcf 100644
|
|
class WP_Users_List_Table extends WP_List_Table { |
270 | 270 | 'cb' => '<input type="checkbox" />', |
271 | 271 | 'username' => __( 'Username' ), |
272 | 272 | 'name' => __( 'Name' ), |
273 | | 'email' => __( 'E-mail' ), |
| 273 | 'email' => __( 'Email' ), |
274 | 274 | 'role' => __( 'Role' ), |
275 | 275 | 'posts' => __( 'Posts' ) |
276 | 276 | ); |
diff --git src/wp-admin/includes/schema.php src/wp-admin/includes/schema.php
index d965a7e..75e8f5b 100644
|
|
function populate_network( $network_id = 1, $domain = '', $email = '', $site_nam |
895 | 895 | |
896 | 896 | $site_user = get_user_by( 'email', $email ); |
897 | 897 | if ( ! is_email( $email ) ) |
898 | | $errors->add( 'invalid_email', __( 'You must provide a valid e-mail address.' ) ); |
| 898 | $errors->add( 'invalid_email', __( 'You must provide a valid email address.' ) ); |
899 | 899 | |
900 | 900 | if ( $errors->get_error_code() ) |
901 | 901 | return $errors; |
diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
index abab6df..50b6cda 100644
|
|
function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $ |
491 | 491 | </div> |
492 | 492 | |
493 | 493 | <div class="inside"> |
494 | | <label for="author-email"><?php _e('E-mail') ?></label> |
| 494 | <label for="author-email"><?php _e('Email') ?></label> |
495 | 495 | <input type="text" name="newcomment_author_email" size="50" value="" id="author-email" /> |
496 | 496 | </div> |
497 | 497 | |
diff --git src/wp-admin/includes/user.php src/wp-admin/includes/user.php
index a40efea..729ec18 100644
|
|
function edit_user( $user_id = 0 ) { |
149 | 149 | if ( !$update && username_exists( $user->user_login ) ) |
150 | 150 | $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' )); |
151 | 151 | |
152 | | /* checking e-mail address */ |
| 152 | /* checking email address */ |
153 | 153 | if ( empty( $user->user_email ) ) { |
154 | | $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) ); |
| 154 | $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) ); |
155 | 155 | } elseif ( !is_email( $user->user_email ) ) { |
156 | 156 | $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ), array( 'form-field' => 'email' ) ); |
157 | 157 | } elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) { |
diff --git src/wp-admin/install.php src/wp-admin/install.php
index 2c0c607..08da49a 100644
|
|
function display_setup_form( $error = null ) { |
172 | 172 | </tr> |
173 | 173 | <?php endif; ?> |
174 | 174 | <tr> |
175 | | <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th> |
| 175 | <th scope="row"><label for="admin_email"><?php _e( 'Your Email' ); ?></label></th> |
176 | 176 | <td><input name="admin_email" type="email" id="admin_email" size="25" value="<?php echo esc_attr( $admin_email ); ?>" /> |
177 | 177 | <p><?php _e( 'Double-check your email address before continuing.' ); ?></p></td> |
178 | 178 | </tr> |
… |
… |
switch($step) { |
293 | 293 | $admin_email = isset( $_POST['admin_email'] ) ?trim( wp_unslash( $_POST['admin_email'] ) ) : ''; |
294 | 294 | $public = isset( $_POST['blog_public'] ) ? (int) $_POST['blog_public'] : 0; |
295 | 295 | |
296 | | // Check e-mail address. |
| 296 | // Check email address. |
297 | 297 | $error = false; |
298 | 298 | if ( empty( $user_name ) ) { |
299 | 299 | // TODO: poka-yoke |
diff --git src/wp-admin/options-discussion.php src/wp-admin/options-discussion.php
index 2ddaaac..52820f6 100644
|
|
include( ABSPATH . 'wp-admin/admin-header.php' ); |
78 | 78 | <tr> |
79 | 79 | <th scope="row"><?php _e('Other comment settings'); ?></th> |
80 | 80 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings'); ?></span></legend> |
81 | | <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> |
| 81 | <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> |
82 | 82 | <br /> |
83 | 83 | <label for="comment_registration"> |
84 | 84 | <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> /> |
… |
… |
printf( __('Comments should be displayed with the %s comments at the top of each |
144 | 144 | </fieldset></td> |
145 | 145 | </tr> |
146 | 146 | <tr> |
147 | | <th scope="row"><?php _e('E-mail me whenever'); ?></th> |
148 | | <td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever'); ?></span></legend> |
| 147 | <th scope="row"><?php _e('Email me whenever'); ?></th> |
| 148 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Email me whenever'); ?></span></legend> |
149 | 149 | <label for="comments_notify"> |
150 | 150 | <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> /> |
151 | 151 | <?php _e('Anyone posts a comment'); ?> </label> |
… |
… |
printf( __('Comments should be displayed with the %s comments at the top of each |
170 | 170 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation'); ?></span></legend> |
171 | 171 | <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> |
172 | 172 | |
173 | | <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> |
| 173 | <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> |
174 | 174 | <p> |
175 | 175 | <textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea> |
176 | 176 | </p> |
… |
… |
printf( __('Comments should be displayed with the %s comments at the top of each |
179 | 179 | <tr> |
180 | 180 | <th scope="row"><?php _e('Comment Blacklist'); ?></th> |
181 | 181 | <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist'); ?></span></legend> |
182 | | <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> |
| 182 | <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> |
183 | 183 | <p> |
184 | 184 | <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> |
185 | 185 | </p> |
… |
… |
endforeach; |
235 | 235 | <th scope="row"><?php _e('Default Avatar'); ?></th> |
236 | 236 | <td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar'); ?></span></legend> |
237 | 237 | |
238 | | <?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 /> |
| 238 | <?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 /> |
239 | 239 | |
240 | 240 | <?php |
241 | 241 | $avatar_defaults = array( |
diff --git src/wp-admin/options-general.php src/wp-admin/options-general.php
index 7f2a14e..cbb7d2f 100644
|
|
include( ABSPATH . 'wp-admin/admin-header.php' ); |
135 | 135 | <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> |
136 | 136 | </tr> |
137 | 137 | <tr> |
138 | | <th scope="row"><label for="admin_email"><?php _e('E-mail Address') ?> </label></th> |
| 138 | <th scope="row"><label for="admin_email"><?php _e('Email Address') ?> </label></th> |
139 | 139 | <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" /> |
140 | 140 | <p class="description" id="admin-email-description"><?php _e( 'This address is used for admin purposes, like new user notification.' ) ?></p></td> |
141 | 141 | </tr> |
… |
… |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
154 | 154 | </tr> |
155 | 155 | <?php } else { ?> |
156 | 156 | <tr> |
157 | | <th scope="row"><label for="new_admin_email"><?php _e('E-mail Address') ?> </label></th> |
| 157 | <th scope="row"><label for="new_admin_email"><?php _e('Email Address') ?> </label></th> |
158 | 158 | <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" /> |
159 | | <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> |
| 159 | <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> |
160 | 160 | <?php |
161 | 161 | $new_admin_email = get_option( 'new_admin_email' ); |
162 | 162 | if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?> |
163 | 163 | <div class="updated inline"> |
164 | | <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> |
| 164 | <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> |
165 | 165 | </div> |
166 | 166 | <?php endif; ?> |
167 | 167 | </td> |
diff --git src/wp-admin/options-writing.php src/wp-admin/options-writing.php
index ba7eeca..31ef57a 100644
|
|
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
27 | 27 | get_current_screen()->add_help_tab( array( |
28 | 28 | 'id' => 'options-postemail', |
29 | 29 | 'title' => __( 'Post Via Email' ), |
30 | | '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>', |
| 30 | '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>', |
31 | 31 | ) ); |
32 | 32 | } |
33 | 33 | |
… |
… |
do_settings_fields('writing', 'remote_publishing'); // A deprecated section. |
113 | 113 | /** This filter is documented in wp-admin/options.php */ |
114 | 114 | if ( apply_filters( 'enable_post_by_email_configuration', true ) ) { |
115 | 115 | ?> |
116 | | <h3 class="title"><?php _e('Post via e-mail') ?></h3> |
117 | | <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> |
| 116 | <h3 class="title"><?php _e('Post via email') ?></h3> |
| 117 | <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> |
118 | 118 | |
119 | 119 | <table class="form-table"> |
120 | 120 | <tr> |
diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
index 6143514..c126be4 100644
|
|
if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
396 | 396 | |
397 | 397 | <table class="form-table"> |
398 | 398 | <tr class="user-email-wrap"> |
399 | | <th><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> |
| 399 | <th><label for="email"><?php _e('Email'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> |
400 | 400 | <td><input type="email" name="email" id="email" value="<?php echo esc_attr( $profileuser->user_email ) ?>" class="regular-text ltr" /> |
401 | 401 | <?php |
402 | 402 | $new_email = get_option( $current_user->ID . '_new_email' ); |
… |
… |
if ( is_multisite() && is_network_admin() && ! IS_PROFILE_PAGE && current_user_c |
404 | 404 | <div class="updated inline"> |
405 | 405 | <p><?php |
406 | 406 | printf( |
407 | | __( 'There is a pending change of your e-mail to %1$s. <a href="%2$s">Cancel</a>' ), |
| 407 | __( 'There is a pending change of your email to %1$s. <a href="%2$s">Cancel</a>' ), |
408 | 408 | '<code>' . $new_email['newemail'] . '</code>', |
409 | 409 | esc_url( self_admin_url( 'profile.php?dismiss=' . $current_user->ID . '_new_email' ) ) |
410 | 410 | ); ?></p> |
diff --git src/wp-admin/user-new.php src/wp-admin/user-new.php
index 631c746..28c46c6 100644
|
|
if ( is_multisite() ) { |
289 | 289 | echo '<h3 id="add-existing-user">' . __('Add Existing User') . '</h3>'; |
290 | 290 | if ( !is_super_admin() ) { |
291 | 291 | 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>'; |
292 | | $label = __('E-mail'); |
| 292 | $label = __('Email'); |
293 | 293 | $type = 'email'; |
294 | 294 | } else { |
295 | 295 | 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>'; |
296 | | $label = __('E-mail or Username'); |
| 296 | $label = __('Email or Username'); |
297 | 297 | $type = 'text'; |
298 | 298 | } |
299 | 299 | ?> |
… |
… |
$new_user_ignore_pass = $creating && isset( $_POST['noconfirmation'] ) ? wp_unsl |
377 | 377 | <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> |
378 | 378 | </tr> |
379 | 379 | <tr class="form-field form-required"> |
380 | | <th scope="row"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> |
| 380 | <th scope="row"><label for="email"><?php _e('Email'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> |
381 | 381 | <td><input name="email" type="email" id="email" value="<?php echo esc_attr( $new_user_email ); ?>" /></td> |
382 | 382 | </tr> |
383 | 383 | <?php if ( !is_multisite() ) { ?> |
diff --git src/wp-includes/pluggable.php src/wp-includes/pluggable.php
index 643fc24..b755bdd 100644
|
|
function wp_notify_postauthor( $comment_id, $deprecated = null ) { |
1463 | 1463 | $notify_message = sprintf( __( 'New comment on your post "%s"' ), $post->post_title ) . "\r\n"; |
1464 | 1464 | /* translators: 1: comment author, 2: author IP, 3: author domain */ |
1465 | 1465 | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1466 | | $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n"; |
| 1466 | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1467 | 1467 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1468 | 1468 | $notify_message .= sprintf( __('Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; |
1469 | 1469 | $notify_message .= __( 'You can see all comments on this post here:' ) . "\r\n"; |
… |
… |
function wp_notify_moderator($comment_id) { |
1593 | 1593 | $notify_message = sprintf( __('A new comment on the post "%s" is waiting for your approval'), $post->post_title ) . "\r\n"; |
1594 | 1594 | $notify_message .= get_permalink($comment->comment_post_ID) . "\r\n\r\n"; |
1595 | 1595 | $notify_message .= sprintf( __( 'Author: %1$s (IP: %2$s, %3$s)' ), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; |
1596 | | $notify_message .= sprintf( __( 'E-mail: %s' ), $comment->comment_author_email ) . "\r\n"; |
| 1596 | $notify_message .= sprintf( __( 'Email: %s' ), $comment->comment_author_email ) . "\r\n"; |
1597 | 1597 | $notify_message .= sprintf( __( 'URL: %s' ), $comment->comment_author_url ) . "\r\n"; |
1598 | 1598 | $notify_message .= sprintf( __( 'Comment: %s' ), "\r\n" . $comment->comment_content ) . "\r\n\r\n"; |
1599 | 1599 | break; |
… |
… |
function wp_new_user_notification( $user_id, $notify = '' ) { |
1706 | 1706 | |
1707 | 1707 | $message = sprintf(__('New user registration on your site %s:'), $blogname) . "\r\n\r\n"; |
1708 | 1708 | $message .= sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; |
1709 | | $message .= sprintf(__('E-mail: %s'), $user->user_email) . "\r\n"; |
| 1709 | $message .= sprintf(__('Email: %s'), $user->user_email) . "\r\n"; |
1710 | 1710 | |
1711 | 1711 | @wp_mail(get_option('admin_email'), sprintf(__('[%s] New User Registration'), $blogname), $message); |
1712 | 1712 | |
diff --git src/wp-includes/theme-compat/comments-popup.php src/wp-includes/theme-compat/comments-popup.php
index e8f8655..8accfb7 100644
|
|
if ( post_password_required($post) ) { // and it doesn't match the cookie |
63 | 63 | |
64 | 64 | <?php if ( comments_open() ) { ?> |
65 | 65 | <h2><?php _e('Leave a comment'); ?></h2> |
66 | | <p><?php printf(__('Line and paragraph breaks automatic, e-mail address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>'), allowed_tags()); ?></p> |
| 66 | <p><?php printf(__('Line and paragraph breaks automatic, email address never displayed, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code>%s</code>'), allowed_tags()); ?></p> |
67 | 67 | |
68 | 68 | <form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform"> |
69 | 69 | <?php if ( $user_ID ) : ?> |
… |
… |
if ( post_password_required($post) ) { // and it doesn't match the cookie |
76 | 76 | |
77 | 77 | <p> |
78 | 78 | <input type="text" name="email" id="email" value="<?php echo esc_attr( $commenter['comment_author_email'] ); ?>" size="28" tabindex="2" /> |
79 | | <label for="email"><?php _e('E-mail'); ?></label> |
| 79 | <label for="email"><?php _e('Email'); ?></label> |
80 | 80 | </p> |
81 | 81 | |
82 | 82 | <p> |
diff --git src/wp-includes/user-functions.php src/wp-includes/user-functions.php
index fb13643..5e09d6b 100644
|
|
function register_new_user( $user_login, $user_email ) { |
1950 | 1950 | $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ) ); |
1951 | 1951 | } |
1952 | 1952 | |
1953 | | // Check the e-mail address |
| 1953 | // Check the email address |
1954 | 1954 | if ( $user_email == '' ) { |
1955 | | $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your e-mail address.' ) ); |
| 1955 | $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your email address.' ) ); |
1956 | 1956 | } elseif ( ! is_email( $user_email ) ) { |
1957 | 1957 | $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ) ); |
1958 | 1958 | $user_email = ''; |
diff --git src/wp-login.php src/wp-login.php
index 57b2a2e..42a7cec 100644
|
|
function retrieve_password() { |
281 | 281 | $errors = new WP_Error(); |
282 | 282 | |
283 | 283 | if ( empty( $_POST['user_login'] ) ) { |
284 | | $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.')); |
| 284 | $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.')); |
285 | 285 | } elseif ( strpos( $_POST['user_login'], '@' ) ) { |
286 | 286 | $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) ); |
287 | 287 | if ( empty( $user_data ) ) |
… |
… |
function retrieve_password() { |
302 | 302 | return $errors; |
303 | 303 | |
304 | 304 | if ( !$user_data ) { |
305 | | $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.')); |
| 305 | $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or email.')); |
306 | 306 | return $errors; |
307 | 307 | } |
308 | 308 | |
… |
… |
function retrieve_password() { |
407 | 407 | $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data ); |
408 | 408 | |
409 | 409 | if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) |
410 | | wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') ); |
| 410 | wp_die( __('The email could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') ); |
411 | 411 | |
412 | 412 | return true; |
413 | 413 | } |
… |
… |
case 'retrievepassword' : |
560 | 560 | |
561 | 561 | <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> |
562 | 562 | <p> |
563 | | <label for="user_login" ><?php _e('Username or E-mail:') ?><br /> |
| 563 | <label for="user_login" ><?php _e('Username or Email:') ?><br /> |
564 | 564 | <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label> |
565 | 565 | </p> |
566 | 566 | <?php |
… |
… |
case 'register' : |
748 | 748 | <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label> |
749 | 749 | </p> |
750 | 750 | <p> |
751 | | <label for="user_email"><?php _e('E-mail') ?><br /> |
| 751 | <label for="user_email"><?php _e('Email') ?><br /> |
752 | 752 | <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label> |
753 | 753 | </p> |
754 | 754 | <?php |
755 | 755 | /** |
756 | | * Fires following the 'E-mail' field in the user registration form. |
| 756 | * Fires following the 'Email' field in the user registration form. |
757 | 757 | * |
758 | 758 | * @since 2.1.0 |
759 | 759 | */ |
760 | 760 | do_action( 'register_form' ); |
761 | 761 | ?> |
762 | | <p id="reg_passmail"><?php _e( 'Registration confirmation will be e-mailed to you.' ); ?></p> |
| 762 | <p id="reg_passmail"><?php _e( 'Registration confirmation will be emailed to you.' ); ?></p> |
763 | 763 | <br class="clear" /> |
764 | 764 | <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> |
765 | 765 | <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Register'); ?>" /></p> |
… |
… |
default: |
872 | 872 | elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] ) |
873 | 873 | $errors->add('registerdisabled', __('User registration is currently not allowed.')); |
874 | 874 | elseif ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] ) |
875 | | $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message'); |
| 875 | $errors->add('confirm', __('Check your email for the confirmation link.'), 'message'); |
876 | 876 | elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] ) |
877 | | $errors->add('newpass', __('Check your e-mail for your new password.'), 'message'); |
| 877 | $errors->add('newpass', __('Check your email for your new password.'), 'message'); |
878 | 878 | elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] ) |
879 | | $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message'); |
| 879 | $errors->add('registered', __('Registration complete. Please check your email.'), 'message'); |
880 | 880 | elseif ( strpos( $redirect_to, 'about.php?updated' ) ) |
881 | 881 | $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new.' ), 'message' ); |
882 | 882 | } |