WordPress.org

Make WordPress Core

Ticket #19445: 19445.diff

File 19445.diff, 661 bytes (added by SergeyBiryukov, 5 years ago)
  • wp-includes/user.php

     
    9191
    9292        if ( is_multisite() ) {
    9393                // Is user marked as spam?
    94                 if ( 1 == $user->spam)
    95                         return new WP_Error('invalid_username', __('<strong>ERROR</strong>: Your account has been marked as a spammer.'));
     94                if ( 1 == $user->spam )
     95                        return new WP_Error('spammer_account', __('<strong>ERROR</strong>: Your account has been marked as a spammer.'));
    9696
    9797                // Is a user's blog marked as spam?
    9898                if ( !is_super_admin( $user->ID ) && isset($user->primary_blog) ) {