Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 07:24:36 PM (13 years ago)
Author:
boonebgorges
Message:

Introduces bp_use_wp_admin_bar() to reduce BP_USE_WP_ADMIN_BAR checks throughout BP. See #3314

File:
1 edited

Legend:

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

    r4602 r4631  
    510510
    511511    // Show the WordPress admin bar
    512     if ( defined( 'BP_USE_WP_ADMIN_BAR' ) && BP_USE_WP_ADMIN_BAR && $wp_version >= 3.1 ) {
     512    if ( bp_use_wp_admin_bar() && $wp_version >= 3.1 ) {
    513513        show_admin_bar( true );
    514514
    515515    // Hide the WordPress admin bar
    516     } elseif ( !defined( 'BP_DISABLE_ADMIN_BAR' ) || !BP_DISABLE_ADMIN_BAR ) {
     516    } elseif ( !bp_use_wp_admin_bar() ) {
    517517
    518518        // Keep the WP admin bar from loading
Note: See TracChangeset for help on using the changeset viewer.