Remove unused error string. props pavelevap. fixes #22107.
git-svn-id: http://core.svn.wordpress.org/trunk@23412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e46d0045c
commit
08269aa6b0
|
@ -113,7 +113,6 @@ Please click the following link to confirm the invite:
|
|||
} else {
|
||||
// Adding a new user to this blog
|
||||
$user_details = wpmu_validate_user_signup( $_REQUEST[ 'user_login' ], $_REQUEST[ 'email' ] );
|
||||
unset( $user_details[ 'errors' ]->errors[ 'user_email_used' ] );
|
||||
if ( is_wp_error( $user_details[ 'errors' ] ) && !empty( $user_details[ 'errors' ]->errors ) ) {
|
||||
$add_user_errors = $user_details[ 'errors' ];
|
||||
} else {
|
||||
|
|
|
@ -497,9 +497,6 @@ function wpmu_validate_user_signup($user_name, $user_email) {
|
|||
$wpdb->delete( $wpdb->signups, array( 'user_login' => $user_name ) );
|
||||
else
|
||||
$errors->add('user_name', __('That username is currently reserved but may be available in a couple of days.'));
|
||||
|
||||
if ( $signup->active == 0 && $signup->user_email == $user_email )
|
||||
$errors->add('user_email_used', __('username and email used'));
|
||||
}
|
||||
|
||||
$signup = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->signups WHERE user_email = %s", $user_email) );
|
||||
|
|
Loading…
Reference in New Issue