Changeset 13891 for trunk/src/bp-core/bp-core-adminbar.php
- Timestamp:
- 06/02/2024 01:12:39 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-adminbar.php
r13741 r13891 32 32 33 33 // Add secondary parent item for all BuddyPress components. 34 $wp_admin_bar->add_node( array( 35 'parent' => 'my-account', 36 'id' => 'my-account-buddypress', 37 'title' => __( 'My Account', 'buddypress' ), 38 'group' => true, 39 'meta' => array( 40 'class' => 'ab-sub-secondary' 34 $wp_admin_bar->add_node( 35 array( 36 'parent' => 'my-account', 37 'id' => 'my-account-buddypress', 38 'title' => __( 'My Account', 'buddypress' ), 39 'group' => true, 40 'meta' => array( 41 'class' => 'ab-sub-secondary', 42 ), 41 43 ) 42 ) );44 ); 43 45 } 44 46 } … … 52 54 function bp_core_load_admin_bar() { 53 55 // Show the Toolbar for logged out users. 54 if ( ! is_user_logged_in() && (int) bp_get_option( 'hide-loggedout-adminbar' ) != 1 ) {56 if ( ! is_user_logged_in() && (int) bp_get_option( 'hide-loggedout-adminbar' ) !== 1 ) { 55 57 show_admin_bar( true ); 56 58 } … … 68 70 */ 69 71 function bp_core_load_admin_bar_css() { 70 add_action( 'bp_enqueue_scripts', 72 add_action( 'bp_enqueue_scripts', 'bp_core_enqueue_admin_bar_css', 1 ); 71 73 add_action( 'bp_admin_enqueue_scripts', 'bp_core_enqueue_admin_bar_css', 1 ); 72 74 }
Note: See TracChangeset
for help on using the changeset viewer.