Skip to:
Content

BuddyPress.org

Changeset 4390


Ignore:
Timestamp:
05/19/2011 04:08:09 PM (13 years ago)
Author:
boonebgorges
Message:

Sets BP_ROOT_BLOG based on current site's primary blog, er, current network's primary site. You get what I mean. References #3228. Props wpmuguru

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r4203 r4390  
    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
Note: See TracChangeset for help on using the changeset viewer.