Use distinct error code in wp_authenticate_username_password() when user is a spammer. props sirzooro. fixes #19445.

git-svn-id: http://core.svn.wordpress.org/trunk@23579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-03-01 18:01:16 +00:00
parent 7b47322e22
commit 3a86ceb816
1 changed files with 5 additions and 5 deletions

View File

@ -92,7 +92,7 @@ function wp_authenticate_username_password($user, $username, $password) {
if ( is_multisite() ) {
// Is user marked as spam?
if ( 1 == $user->spam )
return new WP_Error('invalid_username', __('<strong>ERROR</strong>: Your account has been marked as a spammer.'));
return new WP_Error( 'spammer_account', __( '<strong>ERROR</strong>: Your account has been marked as a spammer.' ) );
// Is a user's blog marked as spam?
if ( !is_super_admin( $user->ID ) && isset( $user->primary_blog ) ) {