Changeset 13741 for trunk/src/bp-core/bp-core-adminbar.php
- Timestamp:
- 02/23/2024 03:16:00 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-adminbar.php
r13395 r13741 24 24 25 25 // Bail if this is an ajax request. 26 if ( !bp_use_wp_admin_bar() || defined( 'DOING_AJAX' ) )26 if ( wp_doing_ajax() ) { 27 27 return; 28 } 28 29 29 30 // Only add menu for logged in user. … … 54 55 show_admin_bar( true ); 55 56 } 56 57 // Hide the WordPress Toolbar.58 if ( ! bp_use_wp_admin_bar() ) {59 // Keep the WP Toolbar from loading.60 show_admin_bar( false );61 }62 57 } 63 58 add_action( 'init', 'bp_core_load_admin_bar', 9 ); … … 87 82 function bp_core_enqueue_admin_bar_css() { 88 83 89 // Bail if not using WordPress's admin bar or it's not showing on this 90 // page request. 91 if ( ! bp_use_wp_admin_bar() || ! is_admin_bar_showing() ) { 84 // Bail if WordPress's admin bar is not showing on this page request. 85 if ( ! is_admin_bar_showing() ) { 92 86 return; 93 87 }
Note: See TracChangeset
for help on using the changeset viewer.