Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 01:12:39 AM (13 months ago)
Author:
espellcaste
Message:

WPCS: Part V: miscellaneous fixes for some of the files of the core component.

Follow-up to [13883], [13886], [13887], and [13888]

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-adminbar.php

    r13741 r13891  
    3232
    3333        // 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                ),
    4143            )
    42         ) );
     44        );
    4345    }
    4446}
     
    5254function bp_core_load_admin_bar() {
    5355    // 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 ) {
    5557        show_admin_bar( true );
    5658    }
     
    6870 */
    6971function bp_core_load_admin_bar_css() {
    70     add_action( 'bp_enqueue_scripts',       'bp_core_enqueue_admin_bar_css', 1 );
     72    add_action( 'bp_enqueue_scripts', 'bp_core_enqueue_admin_bar_css', 1 );
    7173    add_action( 'bp_admin_enqueue_scripts', 'bp_core_enqueue_admin_bar_css', 1 );
    7274}
Note: See TracChangeset for help on using the changeset viewer.