Skip to:
Content

BuddyPress.org

Changeset 1715 for trunk/bp-core.php


Ignore:
Timestamp:
08/27/2009 07:48:54 PM (15 years ago)
Author:
apeatling
Message:

Fixes #755 props chrisscott

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1701 r1715  
    1414/* Define on which blog ID BuddyPress should run */
    1515if ( !defined( 'BP_ROOT_BLOG' ) )
    16     define( 'BP_ROOT_BLOG', 1 );
     16    define( 'BP_ROOT_BLOG', 2 );
    1717
    1818/* Define the user and usermeta table names, useful if you are using custom or shared tables */
     
    387387 */
    388388function 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 );
    390397}
    391398
     
    12971304 */
    12981305function bp_core_email_from_name_filter() {
    1299     return get_blog_option( 1, 'blogname' );
     1306    return get_blog_option( BP_ROOT_BLOG, 'blogname' );
    13001307}
    13011308add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
Note: See TracChangeset for help on using the changeset viewer.