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:
parent
5c4290f999
commit
37d48e2f2e
|
@ -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 )
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue