Changeset 1715 for trunk/bp-core.php
- Timestamp:
- 08/27/2009 07:48:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r1701 r1715 14 14 /* Define on which blog ID BuddyPress should run */ 15 15 if ( !defined( 'BP_ROOT_BLOG' ) ) 16 define( 'BP_ROOT_BLOG', 1);16 define( 'BP_ROOT_BLOG', 2 ); 17 17 18 18 /* Define the user and usermeta table names, useful if you are using custom or shared tables */ … … 387 387 */ 388 388 function bp_core_get_root_domain() { 389 return apply_filters( 'bp_core_get_root_domain', get_blog_option( BP_ROOT_BLOG, 'siteurl' ) ); 389 global $current_blog; 390 391 if ( defined( 'BP_ENABLE_MULTIBLOG' ) ) 392 $domain = get_blog_option( $current_blog->blog_id, 'siteurl' ); 393 else 394 $domain = get_blog_option( BP_ROOT_BLOG, 'siteurl' ); 395 396 return apply_filters( 'bp_core_get_root_domain', $domain ); 390 397 } 391 398 … … 1297 1304 */ 1298 1305 function bp_core_email_from_name_filter() { 1299 return get_blog_option( 1, 'blogname' );1306 return get_blog_option( BP_ROOT_BLOG, 'blogname' ); 1300 1307 } 1301 1308 add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
Note: See TracChangeset
for help on using the changeset viewer.