Make WordPress Core

Changeset 48195


Ignore:
Timestamp:
06/27/2020 11:43:01 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Users: Merge two similar error messages about usernames with invalid characters.

Props ramiy, garrett-eclipse, chetan200891.
Fixes #47003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r48102 r48195  
    12461246            return new WP_Error(
    12471247                'rest_user_invalid_username',
    1248                 __( 'Username contains invalid characters.' ),
     1248                __( 'This username is invalid because it uses illegal characters. Please enter a valid username.' ),
    12491249                array( 'status' => 400 )
    12501250            );
Note: See TracChangeset for help on using the changeset viewer.