Skip to:
Content

BuddyPress.org

Changeset 5582


Ignore:
Timestamp:
12/22/2011 07:25:04 PM (13 years ago)
Author:
djpaul
Message:

Check to see if another plugin has disabled Activity's Akismet support. Fixes #3880

File:
1 edited

Legend:

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

    r5414 r5582  
    600600
    601601    // Bail if Akismet is not active
    602     if ( !defined( 'AKISMET_VERSION' ) )
     602    if ( ! defined( 'AKISMET_VERSION' ) )
    603603        return;
    604604
    605605    // Bail if no Akismet key is set
    606     if ( !bp_get_option( 'wordpress_api_key' ) && !defined( 'WPCOM_API_KEY' ) )
     606    if ( ! bp_get_option( 'wordpress_api_key' ) && ! defined( 'WPCOM_API_KEY' ) )
     607        return;
     608
     609    // Bail if BuddyPress Activity Akismet support has been disabled by another plugin
     610    if ( ! apply_filters( 'bp_activity_use_akismet', true ) )
    607611        return;
    608612
     
    610614    $bp->activity->akismet = new BP_Akismet();
    611615}
    612 
    613616?>
Note: See TracChangeset for help on using the changeset viewer.