Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/24/2011 06:28:47 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Force WordPress admin bar to show when user is not logged in, if BP_USE_WP_ADMIN_BAR constant is set. Also include Root Blog, Log in, and Register links.

File:
1 edited

Legend:

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

    r4142 r4155  
    464464}
    465465
     466/**
     467 * Handle the Admin Bar/BuddyBar business
     468 *
     469 * @todo Clean up global constants
     470 *
     471 * @global num $wp_version
     472 */
    466473function bp_core_load_admin_bar() {
    467474    global $wp_version;
    468475
     476    // Show the WordPress admin bar
    469477    if ( defined( 'BP_USE_WP_ADMIN_BAR' ) && BP_USE_WP_ADMIN_BAR && $wp_version >= 3.1 ) {
    470         // TODO: Add BP support to WP admin bar
    471         return;
    472 
     478        show_admin_bar( true );
     479
     480    // Hide the WordPress admin bar
    473481    } elseif ( !defined( 'BP_DISABLE_ADMIN_BAR' ) || !BP_DISABLE_ADMIN_BAR ) {
     482
    474483        // Keep the WP admin bar from loading
    475484        show_admin_bar( false );
Note: See TracChangeset for help on using the changeset viewer.