Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/12/2011 09:09:29 PM (13 years ago)
Author:
djpaul
Message:

See #3660. Activity admin iteration.

  • Update automatic Akismet submission hook priority (r5276).
  • Update "In Response To" column.
  • Update Contextual Help.
  • Spam, un-spam and delete action buttons work.
  • Small styling tweaks.
  • Switched some $bp global and BP_VERSION to use the new wrapper functions.
File:
1 edited

Legend:

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

    r5307 r5325  
    13601360    // If Akismet is active, and this was a manual spam/ham request, stop Akismet checking the activity
    13611361    if ( 'by_a_person' == $source && !empty( $bp->activity->akismet ) ) {
    1362         remove_action( 'bp_activity_before_save', array( $bp->activity->akismet, 'check_activity' ), 1, 1 );
     1362        remove_action( 'bp_activity_before_save', array( $bp->activity->akismet, 'check_activity' ), 4, 1 );
    13631363
    13641364        // Build data package for Akismet
     
    13961396    // If Akismet is active, and this was a manual spam/ham request, stop Akismet checking the activity
    13971397    if ( 'by_a_person' == $source && !empty( $bp->activity->akismet ) ) {
    1398         remove_action( 'bp_activity_before_save', array( $bp->activity->akismet, 'check_activity' ), 1, 1 );
     1398        remove_action( 'bp_activity_before_save', array( $bp->activity->akismet, 'check_activity' ), 4, 1 );
    13991399
    14001400        // Build data package for Akismet
     
    14081408    }
    14091409
    1410     //DJPAULTODO: Run bp_activity_at_name_filter() somehow... but not twice, if we can help it. Maybe check if it was auto-spammed by Akismet?
    14111410    do_action( 'bp_activity_mark_as_ham', $activity, $source );
    14121411}
Note: See TracChangeset for help on using the changeset viewer.