Make WordPress Core

Changeset 50589


Ignore:
Timestamp:
03/26/2021 12:12:30 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Login and Registration: Restore the "Error:" prefix for the "Unknown username" message.

This makes the message more consistent with other error messages related to authentication and registration.

Follow-up to [46417].

Props dd32.
See #52914, #52915.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r50439 r50589  
    150150        return new WP_Error(
    151151            'invalid_username',
    152             __( 'Unknown username. Check again or try your email address.' )
     152            __( '<strong>Error</strong>: Unknown username. Check again or try your email address.' )
    153153        );
    154154    }
     
    348348            $error = new WP_Error(
    349349                'invalid_email',
    350                 __( 'Unknown email address. Check again or try your username.' )
     350                __( '<strong>Error</strong>: Unknown email address. Check again or try your username.' )
    351351            );
    352352        } else {
    353353            $error = new WP_Error(
    354354                'invalid_username',
    355                 __( 'Unknown username. Check again or try your email address.' )
     355                __( '<strong>Error</strong>: Unknown username. Check again or try your email address.' )
    356356            );
    357357        }
Note: See TracChangeset for help on using the changeset viewer.