Skip to:
Content

BuddyPress.org

Changeset 5522


Ignore:
Timestamp:
12/11/2011 11:08:12 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Prefix the menu ID's in bp_members_admir_bar_usec_admin_menu(). Fixes #3839.

File:
1 edited

Legend:

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

    r5521 r5522  
    9696    $wp_admin_bar->add_menu( array(
    9797        'parent' => $bp->user_admin_menu_id,
    98         'id'     => 'edit-profile',
     98        'id'     => $bp->user_admin_menu_id . '-edit-profile',
    9999        'title'  => __( "Edit Profile", 'buddypress' ),
    100100        'href'   => bp_get_members_component_link( 'profile', 'edit' )
     
    104104    $wp_admin_bar->add_menu( array(
    105105        'parent' => $bp->user_admin_menu_id,
    106         'id'     => 'change-avatar',
     106        'id'     => $bp->user_admin_menu_id . '-change-avatar',
    107107        'title'  => __( "Edit Avatar", 'buddypress' ),
    108108        'href'   => bp_get_members_component_link( 'profile', 'change-avatar' )
     
    113113        $wp_admin_bar->add_menu( array(
    114114            'parent' => $bp->user_admin_menu_id,
    115             'id'     => 'spam-user',
     115            'id'     => $bp->user_admin_menu_id . '-spam-user',
    116116            'title'  => __( 'Mark as Spammer', 'buddypress' ),
    117117            'href'   => wp_nonce_url( bp_displayed_user_domain() . 'admin/mark-spammer/', 'mark-unmark-spammer' ),
     
    121121        $wp_admin_bar->add_menu( array(
    122122            'parent' => $bp->user_admin_menu_id,
    123             'id'     => 'unspam-user',
     123            'id'     => $bp->user_admin_menu_id . '-unspam-user',
    124124            'title'  => __( 'Not a Spammer', 'buddypress' ),
    125125            'href'   => wp_nonce_url( bp_displayed_user_domain() . 'admin/unmark-spammer/', 'mark-unmark-spammer' ),
     
    131131    $wp_admin_bar->add_menu( array(
    132132        'parent' => $bp->user_admin_menu_id,
    133         'id'     => 'delete-user',
     133        'id'     => $bp->user_admin_menu_id . '-delete-user',
    134134        'title'  => __( 'Delete Account', 'buddypress' ),
    135135        'href'   => wp_nonce_url( bp_displayed_user_domain() . 'admin/delete-user/', 'delete-user' ),
Note: See TracChangeset for help on using the changeset viewer.