Skip to:
Content

BuddyPress.org

Changeset 6734


Ignore:
Timestamp:
01/21/2013 06:12:46 PM (9 years ago)
Author:
djpaul
Message:

Make BP respect the value of "use akismet for activity checks" preference. Fixes #4773

This bug was introduced during 1.6 development.

Location:
trunk/bp-activity
Files:
2 edited

Legend:

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

    r6732 r6734  
    592592
    593593    // Bail if BuddyPress Activity Akismet support has been disabled by another plugin
    594     if ( ! apply_filters( 'bp_activity_use_akismet', true ) )
     594    if ( ! apply_filters( 'bp_activity_use_akismet', bp_is_akismet_active() ) )
    595595        return;
    596596
  • trunk/bp-activity/bp-activity-loader.php

    r6622 r6734  
    5353        // Load Akismet support if Akismet is configured
    5454        $akismet_key = bp_get_option( 'wordpress_api_key' );
    55         if ( defined( 'AKISMET_VERSION' ) && ( !empty( $akismet_key ) || defined( 'WPCOM_API_KEY' ) ) && apply_filters( 'bp_activity_use_akismet', true ) )
     55        if ( defined( 'AKISMET_VERSION' ) && ( !empty( $akismet_key ) || defined( 'WPCOM_API_KEY' ) ) && apply_filters( 'bp_activity_use_akismet', bp_is_akismet_active() ) )
    5656            $includes[] = 'akismet';
    5757
Note: See TracChangeset for help on using the changeset viewer.