Changeset 5259 for trunk/bp-activity/bp-activity-loader.php
- Timestamp:
- 10/24/2011 02:00:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-loader.php
r5109 r5259 25 25 * @since 1.5.0 26 26 */ 27 function BP_Activity_Component() {28 $this->__construct();29 }30 31 27 function __construct() { 32 28 parent::start( … … 53 49 'notifications', 54 50 ); 51 52 // Load Akismet support if Akismet is configured 53 $akismet_key = bp_get_option( 'wordpress_api_key' ); 54 if ( defined( 'AKISMET_VERSION' ) && ( !empty( $akismet_key ) || defined( 'WPCOM_API_KEY' ) ) ) 55 $includes[] = 'akismet'; 55 56 56 57 parent::includes( $includes ); … … 308 309 parent::setup_title(); 309 310 } 311 312 /** 313 * Setup the actions 314 * 315 * @since 1.6 316 */ 317 function setup_actions() { 318 // Spam prevention 319 add_action( 'bp_include', 'bp_activity_setup_akismet' ); 320 321 parent::setup_actions(); 322 } 310 323 } 311 324 312 325 // Create the activity component 313 326 $bp->activity = new BP_Activity_Component(); 314 315 327 ?>
Note: See TracChangeset
for help on using the changeset viewer.