diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index d26026e51f..88d233d4af 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php @@ -1245,7 +1245,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller { if ( ! validate_username( $username ) ) { return new WP_Error( 'rest_user_invalid_username', - __( 'Username contains invalid characters.' ), + __( 'This username is invalid because it uses illegal characters. Please enter a valid username.' ), array( 'status' => 400 ) ); }