Skip to:
Content

BuddyPress.org

Ticket #3228: 3228.diff

File 3228.diff, 530 bytes (added by wpmuguru, 14 years ago)
  • bp-loader.php

     
    2626        require_once( WP_PLUGIN_DIR . '/bp-custom.php' );
    2727
    2828// Define on which blog ID BuddyPress should run
    29 if ( !defined( 'BP_ROOT_BLOG' ) )
    30         define( 'BP_ROOT_BLOG', 1 );
     29if ( !defined( 'BP_ROOT_BLOG' ) ) {
     30        $current_site = get_current_site();
     31        define( 'BP_ROOT_BLOG', $current_site->blog_id );
     32}
    3133
    3234// Path and URL
    3335if ( !defined( 'BP_PLUGIN_DIR' ) )