Changeset 4602 for trunk/bp-loader.php
- Timestamp:
- 07/04/2011 04:59:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r4556 r4602 28 28 // Define on which blog ID BuddyPress should run 29 29 if ( !defined( 'BP_ROOT_BLOG' ) ) { 30 if ( is_multisite() ) { 30 31 // Root blog is the main site on this network 32 if ( is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ) { 31 33 $current_site = get_current_site(); 32 34 $root_blog_id = $current_site->blog_id; 33 } else { 35 36 // Root blog is every site on this network 37 } elseif ( is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) ) { 38 $root_blog_id = get_current_blog_id(); 39 40 // Root blog is the only blog on this network 41 } elseif( !is_multisite() ) { 34 42 $root_blog_id = 1; 35 43 } … … 104 112 // Switch the user to the new bp-default if they are using the old 105 113 // bp-default on activation. 106 if ( 'bp-sn-parent' == get_blog_option( BP_ROOT_BLOG, 'template' ) && 'bp-default' == get_blog_option( BP_ROOT_BLOG, 'stylesheet' ) )114 if ( 'bp-sn-parent' == get_blog_option( bp_get_root_blog_id(), 'template' ) && 'bp-default' == get_blog_option( bp_get_root_blog_id(), 'stylesheet' ) ) 107 115 switch_theme( 'bp-default', 'bp-default' ); 108 116
Note: See TracChangeset
for help on using the changeset viewer.