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
This commit is contained in:
Sergey Biryukov 2020-06-27 23:44:09 +00:00
parent 5c4290f999
commit 37d48e2f2e
2 changed files with 2 additions and 2 deletions

View File

@ -1245,7 +1245,7 @@ class WP_REST_Users_Controller extends WP_REST_Controller {
if ( ! validate_username( $username ) ) { if ( ! validate_username( $username ) ) {
return new WP_Error( return new WP_Error(
'rest_user_invalid_username', '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 ) array( 'status' => 400 )
); );
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.