Ticket #39645: 39645.2.diff
| File 39645.2.diff, 861 bytes (added by , 4 years ago) |
|---|
-
wp-includes/user.php
3089 3089 // Check the username. 3090 3090 if ( '' === $sanitized_user_login ) { 3091 3091 $errors->add( 'empty_username', __( '<strong>Error</strong>: Please enter a username.' ) ); 3092 } 3093 // Don't let somebody fake an admin account 3094 elseif ( lcfirst( $sanitized_user_login ) == 'admin' ) { 3095 $errors->add( 'invalid_username', __( '<strong>Error</strong>: You are not allowed to use this username for security reasons.' ) ); 3092 3096 } elseif ( ! validate_username( $user_login ) ) { 3093 3097 $errors->add( 'invalid_username', __( '<strong>Error</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.' ) ); 3094 3098 $sanitized_user_login = '';