From 37d48e2f2e3db179be62e4dd0d6b561b9154d379 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 27 Jun 2020 23:44:09 +0000 Subject: [PATCH] Users: Merge two similar error messages about usernames with invalid characters. Props ramiy, garrett-eclipse, chetan200891. Fixes #47003. Built from https://develop.svn.wordpress.org/trunk@48195 git-svn-id: http://core.svn.wordpress.org/trunk@47964 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../rest-api/endpoints/class-wp-rest-users-controller.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php index d26026e51f..88d233d4af 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php +++ b/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 ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 803bbabef9..2c8f5faf90 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48194'; +$wp_version = '5.5-alpha-48195'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.