Skip to:
Content

BuddyPress.org

Changeset 5103


Ignore:
Timestamp:
09/05/2011 03:03:43 PM (14 years ago)
Author:
boonebgorges
Message:

Don't enqueue buddybar CSS when all admin bars are disabled. Fixes #3551

File:
1 edited

Legend:

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

    r5007 r5103  
    563563 */
    564564function bp_core_load_buddybar_css() {
    565     if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) )
     565    if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) || ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) )
    566566        return;
    567567
Note: See TracChangeset for help on using the changeset viewer.