WordPress.org

Make WordPress Core

Ticket #36546: 36546.03.patch

File 36546.03.patch, 790 bytes (added by websupporter, 5 years ago)

This is the patch without the "merge".

  • 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 )
    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.' ) );
    309309        }
    310310        return $user;
    311311}