mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Consolidate some strings. Props pavelevap, SergeyBiryukov. see #21728
git-svn-id: https://develop.svn.wordpress.org/trunk@22124 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -224,12 +224,12 @@ function send_confirmation_on_profile_email() {
|
||||
|
||||
if ( $current_user->user_email != $_POST['email'] ) {
|
||||
if ( !is_email( $_POST['email'] ) ) {
|
||||
$errors->add( 'user_email', __( "<strong>ERROR</strong>: The e-mail address isn't correct." ), array( 'form-field' => 'email' ) );
|
||||
$errors->add( 'user_email', __( "<strong>ERROR</strong>: The email address isn’t correct." ), array( 'form-field' => 'email' ) );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( $wpdb->get_var( $wpdb->prepare( "SELECT user_email FROM {$wpdb->users} WHERE user_email=%s", $_POST['email'] ) ) ) {
|
||||
$errors->add( 'user_email', __( "<strong>ERROR</strong>: The e-mail address is already used." ), array( 'form-field' => 'email' ) );
|
||||
$errors->add( 'user_email', __( "<strong>ERROR</strong>: The email address is already used." ), array( 'form-field' => 'email' ) );
|
||||
delete_option( $current_user->ID . '_new_email' );
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user