Changeset 9843 for trunk/src/bp-activity/bp-activity-actions.php
- Timestamp:
- 05/06/2015 10:23:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-actions.php
r9833 r9843 713 713 * 714 714 * @since BuddyPress (1.6.0) 715 * @since BuddyPress (2.3.0) We only support Akismet 3+. 715 716 */ 716 717 function bp_activity_setup_akismet() { … … 718 719 719 720 // Bail if Akismet is not active 720 if ( ! defined( 'AKISMET_VERSION' ) ) 721 if ( ! defined( 'AKISMET_VERSION' ) ) { 721 722 return; 723 } 724 725 // Bail if older version of Akismet 726 if ( ! class_exists( 'Akismet' ) ) { 727 return; 728 } 722 729 723 730 // Bail if no Akismet key is set 724 if ( ! bp_get_option( 'wordpress_api_key' ) && ! defined( 'WPCOM_API_KEY' ) ) 731 if ( ! bp_get_option( 'wordpress_api_key' ) && ! defined( 'WPCOM_API_KEY' ) ) { 725 732 return; 733 } 726 734 727 735 /** … … 732 740 * @param bool $value Return value of bp_is_akismet_active boolean function. 733 741 */ 734 if ( ! apply_filters( 'bp_activity_use_akismet', bp_is_akismet_active() ) ) 742 if ( ! apply_filters( 'bp_activity_use_akismet', bp_is_akismet_active() ) ) { 735 743 return; 744 } 736 745 737 746 // Instantiate Akismet for BuddyPress
Note: See TracChangeset
for help on using the changeset viewer.