@@ 154-156 (lines=3) @@ | ||
151 | /** This filter is documented in wp-includes/user.php */ |
|
152 | $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); |
|
153 | ||
154 | if ( in_array( strtolower( $user->user_login ), array_map( 'strtolower', $illegal_logins ) ) ) { |
|
155 | $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); |
|
156 | } |
|
157 | ||
158 | /* checking email address */ |
|
159 | if ( empty( $user->user_email ) ) { |
@@ 440-442 (lines=3) @@ | ||
437 | /** This filter is documented in wp-includes/user.php */ |
|
438 | $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); |
|
439 | ||
440 | if ( in_array( strtolower( $user_name ), array_map( 'strtolower', $illegal_logins ) ) ) { |
|
441 | $errors->add( 'user_name', __( 'Sorry, that username is not allowed.' ) ); |
|
442 | } |
|
443 | ||
444 | if ( is_email_address_unsafe( $user_email ) ) |
|
445 | $errors->add('user_email', __('You cannot use that email address to signup. We are having problems with them blocking some of our email. Please use another email provider.')); |
@@ 1450-1452 (lines=3) @@ | ||
1447 | */ |
|
1448 | $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() ); |
|
1449 | ||
1450 | if ( in_array( strtolower( $user_login ), array_map( 'strtolower', $illegal_logins ) ) ) { |
|
1451 | return new WP_Error( 'invalid_username', __( 'Sorry, that username is not allowed.' ) ); |
|
1452 | } |
|
1453 | ||
1454 | /* |
|
1455 | * If a nicename is provided, remove unsafe user characters before using it. |
|
@@ 2262-2268 (lines=7) @@ | ||
2259 | } elseif ( username_exists( $sanitized_user_login ) ) { |
|
2260 | $errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ) ); |
|
2261 | ||
2262 | } else { |
|
2263 | /** This filter is documented in wp-includes/user.php */ |
|
2264 | $illegal_user_logins = array_map( 'strtolower', (array) apply_filters( 'illegal_user_logins', array() ) ); |
|
2265 | if ( in_array( strtolower( $sanitized_user_login ), $illegal_user_logins ) ) { |
|
2266 | $errors->add( 'invalid_username', __( '<strong>ERROR</strong>: Sorry, that username is not allowed.' ) ); |
|
2267 | } |
|
2268 | } |
|
2269 | ||
2270 | // Check the email address |
|
2271 | if ( $user_email == '' ) { |