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-adminbar.php

    r4586 r4602  
    5757    $wp_admin_bar->add_menu( array(
    5858        'id'    => 'bp-root-blog',
    59         'title' => get_blog_option( BP_ROOT_BLOG, 'blogname' ),
     59        'title' => get_blog_option( bp_get_root_blog_id(), 'blogname' ),
    6060        'href'  => bp_get_root_domain()
    6161    ) );
     
    7272                'parent' => 'bp-root-blog',
    7373                'title' => __( 'Admin Dashboard', 'buddypress' ),
    74                 'href' => get_admin_url( BP_ROOT_BLOG )
     74                'href' => get_admin_url( bp_get_root_blog_id() )
    7575            ) );
    7676
Note: See TracChangeset for help on using the changeset viewer.