Skip to:
Content

BuddyPress.org

Changeset 7514


Ignore:
Timestamp:
11/05/2013 02:29:57 PM (11 years ago)
Author:
boonebgorges
Message:

Replace make_spam_user hooks after processing in bp_core_process_spammer_status()

We initially unhook them to avoid unwanted looping within the function, and we
must replace them so that bulk spamming and hamming work as expected.

Fixes #5229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-functions.php

    r7495 r7514  
    615615    // Allow plugins to do neat things
    616616    do_action( 'bp_core_process_spammer_status', $user_id, $is_spam );
     617
     618    // Put things back how we found them
     619    add_action( 'make_spam_user', 'bp_core_mark_user_spam_admin' );
     620    add_action( 'make_ham_user',  'bp_core_mark_user_ham_admin'  );
    617621
    618622    return true;
Note: See TracChangeset for help on using the changeset viewer.