WordPress.org

Make WordPress Core

Ticket #19445: user.php.diff

File user.php.diff, 564 bytes (added by sirzooro, 6 years ago)
  • user.php

    old new  
    9393        if ( is_multisite() ) {
    9494                // Is user marked as spam?
    9595                if ( 1 == $userdata->spam)
    96                         return new WP_Error('invalid_username', __('<strong>ERROR</strong>: Your account has been marked as a spammer.'));
     96                        return new WP_Error('spammer_username', __('<strong>ERROR</strong>: Your account has been marked as a spammer.'));
    9797
    9898                // Is a user's blog marked as spam?
    9999                if ( !is_super_admin( $userdata->ID ) && isset($userdata->primary_blog) ) {