Skip to:
Content

BuddyPress.org

Changeset 5276


Ignore:
Timestamp:
11/05/2011 08:52:03 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Increase Activity stream Akismet priority from 1 to 4. Tweak Akismet setup to split out Akismet activation and missing key scenarios.

Location:
trunk/bp-activity
Files:
2 edited

Legend:

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

    r5262 r5276  
    599599    global $bp;
    600600
    601     $akismet_key = bp_get_option( 'wordpress_api_key' );
    602 
    603     // Load Akismet support if Akismet is configured
    604     if ( !defined( 'AKISMET_VERSION' ) || ( empty( $akismet_key ) && !defined( 'WPCOM_API_KEY' ) ) )
     601    // Bail if Akismet is not active
     602    if ( !defined( 'AKISMET_VERSION' ) )
     603        return;
     604
     605    // Bail if no Akismet key is set
     606    if ( !bp_get_option( 'wordpress_api_key' ) && !defined( 'WPCOM_API_KEY' ) )
    605607        return;
    606608
  • trunk/bp-activity/bp-activity-akismet.php

    r5262 r5276  
    4545
    4646        // Check activity for spam
    47         add_action( 'bp_activity_before_save',     array( $this, 'check_activity' ), 1, 1 );
     47        add_action( 'bp_activity_before_save',     array( $this, 'check_activity' ), 4, 1 );
    4848
    4949        // Tidy up member's latest (activity) update
Note: See TracChangeset for help on using the changeset viewer.