Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/11/2012 11:09:10 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Extensions:

  • Introduce core/extend.php to assist in loading extentions in a more common way.
  • Move some BuddyPress code around, into the files it makes the most sense for it to be in.
  • Remove some redundant BuddyPress loader code.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/actions.php

    r4394 r4395  
    294294
    295295add_action( 'bbp_activation', 'bbp_add_activation_redirect' );
    296 
    297 /**
    298  * Requires and creates the BuddyPress extension, and adds component creation
    299  * action to bp_init hook. @see bbp_setup_buddypress_component()
    300  *
    301  * @since bbPress (r3395)
    302  * @return If BuddyPress is not active
    303  */
    304 function bbp_setup_buddypress() {
    305         global $bp;
    306 
    307         // Bail if no BuddyPress
    308         if ( !empty( $bp->maintenance_mode ) || !defined( 'BP_VERSION' ) ) return;
    309 
    310         // Include the BuddyPress Component
    311         require( bbpress()->includes_dir . 'extend/buddypress/loader.php' );
    312 
    313         // Instantiate BuddyPress for bbPress
    314         bbpress()->extend->buddypress = new BBP_BuddyPress();
    315 
    316         // Add component setup to bp_init action
    317         add_action( 'bp_init', 'bbp_setup_buddypress_component' );
    318 }
Note: See TracChangeset for help on using the changeset viewer.