diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php index 2d2fc37ea2..101b9ab7c6 100644 --- a/src/wp-admin/includes/user.php +++ b/src/wp-admin/includes/user.php @@ -107,7 +107,12 @@ function edit_user( $user_id = 0 ) { /* checking that username has been typed */ if ( $user->user_login == '' ) $errors->add( 'user_login', __( 'ERROR: Please enter a username.' ) ); - + + /* checking that nickname has been typed */ + if ( $update && empty( $user->nickname ) ) { + $errors->add( 'nickname', __( 'ERROR: Please enter a nickname.' ) ); + } + /* checking the password has been typed twice */ /** * Fires before the password and confirm password fields are checked for congruity.