Changeset 4155 for trunk/bp-core/bp-core-buddybar.php
- Timestamp:
- 03/24/2011 06:28:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r4142 r4155 464 464 } 465 465 466 /** 467 * Handle the Admin Bar/BuddyBar business 468 * 469 * @todo Clean up global constants 470 * 471 * @global num $wp_version 472 */ 466 473 function bp_core_load_admin_bar() { 467 474 global $wp_version; 468 475 476 // Show the WordPress admin bar 469 477 if ( defined( 'BP_USE_WP_ADMIN_BAR' ) && BP_USE_WP_ADMIN_BAR && $wp_version >= 3.1 ) { 470 // TODO: Add BP support to WP admin bar471 return; 472 478 show_admin_bar( true ); 479 480 // Hide the WordPress admin bar 473 481 } elseif ( !defined( 'BP_DISABLE_ADMIN_BAR' ) || !BP_DISABLE_ADMIN_BAR ) { 482 474 483 // Keep the WP admin bar from loading 475 484 show_admin_bar( false );
Note: See TracChangeset
for help on using the changeset viewer.