WordPress.org

Make WordPress Core

Ticket #19445: user.php.2.diff

File user.php.2.diff, 588 bytes (added by sirzooro, 2 years ago)

path with patches relative to root

  • wp-includes/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) ) {