Changeset 4027 for trunk/bp-core/bp-core-buddybar.php
- Timestamp:
- 02/08/2011 10:36:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r3982 r4027 295 295 global $bp; 296 296 297 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )297 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) 298 298 return false; 299 299 … … 450 450 // TODO: Add BP support to WP admin bar 451 451 return; 452 452 453 } elseif ( !defined( 'BP_DISABLE_ADMIN_BAR' ) || !BP_DISABLE_ADMIN_BAR ) { 453 454 // Keep the WP admin bar from loading 454 455 show_admin_bar( false ); 455 456 457 // Admin bar styles 458 $stylesheet = get_blog_option( BP_ROOT_BLOG, 'stylesheet' ); 459 460 if ( file_exists( WP_CONTENT_DIR . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ) ) 461 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', WP_CONTENT_URL . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ), array(), BP_VERSION ); 462 else 463 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/css/adminbar.css' ), array(), BP_VERSION ); 464 456 465 // Actions used to build the BP admin bar 457 466 add_action( 'bp_adminbar_logo', 'bp_adminbar_logo' );
Note: See TracChangeset
for help on using the changeset viewer.