Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/21/2012 06:46:36 PM (13 years ago)
Author:
djpaul
Message:

When a part of an activity item matches WordPress' word blacklist, allow the activity
to be recorded to the database, but mark it as spam. Fixes #4284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-admin.php

    r6123 r6127  
    306306
    307307                case 'ham' :
     308                    /**
     309                     * Remove moderation and blacklist checks in case we want to ham an activity
     310                     * which contains one of these listed keys.
     311                     */
     312                    remove_action( 'bp_activity_before_save', 'bp_activity_check_moderation_keys', 2, 1 );
     313                    remove_action( 'bp_activity_before_save', 'bp_activity_check_blacklist_keys',  2, 1 );
     314
    308315                    bp_activity_mark_as_ham( $activity );
    309316                    $result = $activity->save();
Note: See TracChangeset for help on using the changeset viewer.