Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/04/2011 04:59:01 PM (13 years ago)
Author:
johnjamesjacoby
Message:
  • Swap BP_ROOT_BLOG const usage for new bp_get_root_blog_id() function
  • Use bp_get_root_blog_id() place of bp_get_option_blog_id()
  • Check for BP_ENABLE_MULTIBLOG when assigning root blog ID

See #3313, #3314.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r4596 r4602  
    3636 */
    3737function bp_core_email_from_name_filter() {
    38     return apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ) );
     38    return apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ) );
    3939}
    4040add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );
     
    7272        return $themes;
    7373
    74     if ( $wpdb->blogid == BP_ROOT_BLOG ) {
     74    if ( $wpdb->blogid == bp_get_root_blog_id() ) {
    7575        $themes['bp-default'] = 1;
    7676    }
     
    127127    global $bp, $wpdb;
    128128
    129     if ( is_multisite() && $wpdb->blogid != BP_ROOT_BLOG )
     129    if ( is_multisite() && $wpdb->blogid != bp_get_root_blog_id() )
    130130        return $redirect_to;
    131131
Note: See TracChangeset for help on using the changeset viewer.