Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/27/2011 12:17:45 PM (14 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-members/bp-members-adminbar.php

    r4384 r4567  
    9494    }
    9595}
    96 if ( defined( 'BP_USE_WP_ADMIN_BAR' ) )
    97     add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_my_account_menu', 4 );
     96add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_my_account_menu', 4 );
    9897
    9998/**
     
    121120    }
    122121}
    123 if ( defined( 'BP_USE_WP_ADMIN_BAR' ) )
    124     add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_my_account_logout', 9999 );
     122add_action( 'bp_setup_admin_bar', 'bp_members_admin_bar_my_account_logout', 9999 );
    125123
    126124?>
Note: See TracChangeset for help on using the changeset viewer.