Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/10/2011 03:23:12 PM (14 years ago)
Author:
boonebgorges
Message:

Changes main Notifications WP Admin Bar menu id, to avoid clashing with Settings > Notifications. Fixes #3294. Props johnjamesjacoby

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-adminbar.php

    r4620 r4641  
    168168    // Add the top-level Notifications button
    169169    $wp_admin_bar->add_menu( array(
    170         'id'    => 'notifications',
     170        'id'    => 'bp-notifications',
    171171        'title' => $menu_title,
    172172        'href'  => bp_loggedin_user_domain()
     
    176176        foreach ( (array)$notifications as $notification ) {
    177177            $wp_admin_bar->add_menu( array(
    178                 'parent' => 'notifications',
     178                'parent' => 'bp-notifications',
    179179                'id'     => 'notification-' . $notification->id,
    180180                'title'  => $notification->content,
     
    184184    } else {
    185185        $wp_admin_bar->add_menu( array(
    186             'parent' => 'notifications',
     186            'parent' => 'bp-notifications',
    187187            'id'     => 'no-notifications',
    188188            'title'  => __( 'No new notifications', 'buddypress' ),
Note: See TracChangeset for help on using the changeset viewer.