Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/27/2011 12:17:45 PM (13 years ago)
Author:
boonebgorges
Message:

Loads bp_setup_admin_bar hook conditionally based on BP_USE_WP_ADMIN_BAR, to avoid the conditionals in individual component functions

File:
1 edited

Legend:

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

    r4381 r4567  
    251251            return;
    252252
    253         // Do not proceed if constant is not set
    254         if ( !defined( 'BP_USE_WP_ADMIN_BAR' ) )
     253        // Do not proceed if constant is not set or is false
     254        if ( !defined( 'BP_USE_WP_ADMIN_BAR' ) || !BP_USE_WP_ADMIN_BAR )
    255255            return;
    256256
Note: See TracChangeset for help on using the changeset viewer.