Skip to:
Content

BuddyPress.org

Changeset 2599


Ignore:
Timestamp:
02/04/2010 05:11:17 PM (16 years ago)
Author:
apeatling
Message:

Make sure the admin bar styles from the active theme are loaded in the admin area.

File:
1 edited

Legend:

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

    r2591 r2599  
    1010 */
    1111function bp_core_add_admin_bar_css() {
    12     global $bp;
     12    global $bp, $current_blog;
    1313
    1414    if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )
    1515        return false;
    1616
    17     if ( !bp_core_is_multisite() )
    18         return false;
    19 
    20     if ( $bp->current_blog != BP_ROOT_BLOG ) {
     17    if ( ( bp_core_is_multisite() && $current_blog->blog_id != BP_ROOT_BLOG ) || is_admin() ) {
    2118        $stylesheet = get_blog_option( BP_ROOT_BLOG, 'stylesheet' );
    2219
Note: See TracChangeset for help on using the changeset viewer.