Changeset 5276
- Timestamp:
- 11/05/2011 08:52:03 PM (13 years ago)
- Location:
- trunk/bp-activity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-actions.php
r5262 r5276 599 599 global $bp; 600 600 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' ) ) 605 607 return; 606 608 -
trunk/bp-activity/bp-activity-akismet.php
r5262 r5276 45 45 46 46 // 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 ); 48 48 49 49 // Tidy up member's latest (activity) update
Note: See TracChangeset
for help on using the changeset viewer.