Ticket #5979: 5979.process_spammer.patch
File 5979.process_spammer.patch, 640 bytes (added by , 10 years ago) |
---|
-
src/bp-members/bp-members-functions.php
720 720 bp_activity_hide_user_activity( $user_id ); 721 721 } 722 722 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 723 729 // We need a special hook for is_spam so that components can delete data at spam time 724 730 $bp_action = ( true === $is_spam ) ? 'bp_make_spam_user' : 'bp_make_ham_user'; 725 731 do_action( $bp_action, $user_id );