Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2014 11:48:48 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Replace BP_PLUGIN_DIR and BP_PLUGIN_URL constant usages with plugin_dir and plugin_url BuddyPress variables, respectively. Also replaces $bp global touches with buddypress() calls within the above scopes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-bbpress-sa.php

    r7468 r7756  
    1616 */
    1717function bp_forums_load_bbpress() {
    18     global $bp, $wpdb, $wp_roles, $current_user, $wp_users_object;
     18    global $wpdb, $wp_roles, $current_user, $wp_users_object;
    1919    global $bb, $bbdb, $bb_table_prefix, $bb_current_user;
    2020    global $bb_roles, $wp_taxonomy_object, $bb_queries;
    21 
     21   
    2222    // Return if we've already run this function.
    2323    if ( is_object( $bbdb ) )
     
    2727        return false;
    2828
    29     define( 'BB_PATH', BP_PLUGIN_DIR . '/bp-forums/bbpress/' );
    30     define( 'BACKPRESS_PATH', BP_PLUGIN_DIR . '/bp-forums/bbpress/bb-includes/backpress/' );
    31     define( 'BB_URL', BP_PLUGIN_URL . 'bp-forums/bbpress/' );
     29    $bp = buddypress();
     30
     31    define( 'BB_PATH',        $bp->plugin_dir . '/bp-forums/bbpress/' );
     32    define( 'BACKPRESS_PATH', $bp->plugin_dir . '/bp-forums/bbpress/bb-includes/backpress/' );
     33    define( 'BB_URL',         $bp->plugin_url . 'bp-forums/bbpress/' );
    3234    define( 'BB_INC', 'bb-includes/' );
    3335
Note: See TracChangeset for help on using the changeset viewer.