Changeset 4961 for trunk/bp-loader.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r4926 r4961 31 31 // Define on which blog ID BuddyPress should run 32 32 if ( !defined( 'BP_ROOT_BLOG' ) ) { 33 33 34 34 // Root blog is the main site on this network 35 35 if ( is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ) { 36 36 $current_site = get_current_site(); 37 37 $root_blog_id = $current_site->blog_id; 38 38 39 39 // Root blog is every site on this network 40 40 } elseif ( is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) ) { 41 41 $root_blog_id = get_current_blog_id(); 42 42 43 43 // Root blog is the only blog on this network 44 44 } elseif( !is_multisite() ) { … … 98 98 if ( !function_exists( 'bp_loader_activate' ) ) : 99 99 /** 100 * Defines BP's activation routine. 101 * 102 * Most of BP's crucial setup is handled by the setup wizard. This function takes care of some 103 * issues with incompatible legacy themes, and provides a hook for other functions to know that 104 * BP has been activated. 105 * 106 * @package BuddyPress Core 107 */ 100 * Defines BP's activation routine. 101 * 102 * Most of BP's crucial setup is handled by the setup wizard. This function takes care of some 103 * issues with incompatible legacy themes, and provides a hook for other functions to know that 104 * BP has been activated. 105 * 106 * @package BuddyPress Core 107 */ 108 108 function bp_loader_activate() { 109 109 // Force refresh theme roots.
Note: See TracChangeset
for help on using the changeset viewer.