WordPress.org

Make WordPress Core

Ticket #36546: user.diff

File user.diff, 654 bytes (added by websupporter, 5 years ago)
  • src/wp-includes/user.php

     
    302302                 * @param bool    $spammed Whether the user is considered a spammer.
    303303                 * @param WP_User $user    User to check against.
    304304                 */
    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 );
    306306
    307307                if ( $spammed )
    308308                        return new WP_Error( 'spammer_account', __( '<strong>ERROR</strong>: Your account has been marked as a spammer.' ) );