Changeset 5295 for trunk/bp-core/bp-core-buddybar.php
- Timestamp:
- 11/07/2011 10:55:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r5126 r5295 568 568 569 569 // Don't show if admin bar is disabled for non-logged in users 570 if ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in())570 if ( (int) bp_get_option( 'hide-loggedout-adminbar' ) ) 571 571 return; 572 572 … … 574 574 if ( bp_use_wp_admin_bar() && $wp_version >= 3.1 ) { 575 575 // Respect user's admin bar display preferences 576 if ( bp_get_admin_bar_pref( 'front', bp_loggedin_user_id() ) || bp_get_admin_bar_pref( 'admin', bp_loggedin_user_id() ) )576 if ( is_user_logged_in() && ( bp_get_admin_bar_pref( 'front', bp_loggedin_user_id() ) || bp_get_admin_bar_pref( 'admin', bp_loggedin_user_id() ) ) ) 577 577 return; 578 578
Note: See TracChangeset
for help on using the changeset viewer.