Skip to:
Content

BuddyPress.org

Ticket #5979: 5979.process_spammer.patch

File 5979.process_spammer.patch, 640 bytes (added by r-a-y, 10 years ago)
  • src/bp-members/bp-members-functions.php

     
    720720                bp_activity_hide_user_activity( $user_id );
    721721        }
    722722
     723        // Clear object cache
     724        wp_cache_delete( 'bp_core_userdata_' . $user_id, 'bp' );
     725
     726        // Clear member count caches
     727        bp_core_clear_member_count_caches();
     728
    723729        // We need a special hook for is_spam so that components can delete data at spam time
    724730        $bp_action = ( true === $is_spam ) ? 'bp_make_spam_user' : 'bp_make_ham_user';
    725731        do_action( $bp_action, $user_id );