Ticket #36546: 36546.03.patch
File 36546.03.patch, 790 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/user.php
302 302 * @param bool $spammed Whether the user is considered a spammer. 303 303 * @param WP_User $user User to check against. 304 304 */ 305 $spammed = apply_filters( 'check_is_user_spammed', is_user_spammy( ), $user );305 $spammed = apply_filters( 'check_is_user_spammed', is_user_spammy( $user ), $user ); 306 306 307 307 if ( $spammed ) 308 return new WP_Error( 'spammer_account', __( '<strong>ERROR</strong>: Your account has been marked as a spammer.' ) );308 return new WP_Error( 'spammer_account', __( '<strong>ERROR</strong>: Your account has been disabled.' ) ); 309 309 } 310 310 return $user; 311 311 }