Skip to:
Content

bbPress.org

Changeset 5405


Ignore:
Timestamp:
06/16/2014 07:24:45 PM (10 years ago)
Author:
johnjamesjacoby
Message:

When topics are marked as spam, remove them from all favorites, subscriptions, and unstick them.

Fixes cases where spammed topic ID's are left behind in various meta values. Fixes #2621.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r5309 r5405  
    219219
    220220// Favorites
     221add_action( 'bbp_spam_topic',   'bbp_remove_topic_from_all_favorites' );
    221222add_action( 'bbp_trash_topic',  'bbp_remove_topic_from_all_favorites' );
    222223add_action( 'bbp_delete_topic', 'bbp_remove_topic_from_all_favorites' );
    223224
    224225// Subscriptions
     226add_action( 'bbp_spam_topic',   'bbp_remove_topic_from_all_subscriptions'       );
    225227add_action( 'bbp_trash_topic',  'bbp_remove_topic_from_all_subscriptions'       );
    226228add_action( 'bbp_delete_topic', 'bbp_remove_topic_from_all_subscriptions'       );
     
    231233
    232234// Sticky
     235add_action( 'bbp_spam_topic',   'bbp_unstick_topic' );
    233236add_action( 'bbp_trash_topic',  'bbp_unstick_topic' );
    234237add_action( 'bbp_delete_topic', 'bbp_unstick_topic' );
Note: See TracChangeset for help on using the changeset viewer.