Skip to:
Content

Changeset 6760


Ignore:
Timestamp:
01/30/13 23:12:33 (15 months ago)
Author:
r-a-y
Message:

In BuddyBar, mirror admin menu changes from WP Toolbar. Fixes #4778.

Specifically, this commit ports over the following changes from r5829:

  • Removes direct, nonced links for spamming / unspamming a user and deleting a user's account.
  • Replace with settings screen links.
File:
1 edited

Legend:

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

    r6342 r6760  
    129129            <li><a href="<?php bp_members_component_link( 'profile', 'change-avatar' ); ?>"><?php printf( __( "Edit %s's Avatar", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ) ?></a></li> 
    130130 
    131             <?php if ( !bp_is_user_spammer( bp_displayed_user_id() ) ) : ?> 
     131            <li><a href="<?php bp_members_component_link( 'settings', 'capabilities' ); ?>"><?php _e( 'User Capabilities', 'buddypress' ); ?></a></li> 
    132132 
    133                 <li><a href="<?php echo wp_nonce_url( bp_displayed_user_domain() . 'admin/mark-spammer/', 'mark-unmark-spammer' ) ?>" class="confirm"><?php printf( __( "Mark as Spammer", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); ?></a></li> 
    134  
    135             <?php else : ?> 
    136  
    137                 <li><a href="<?php echo wp_nonce_url( bp_displayed_user_domain() . 'admin/unmark-spammer/', 'mark-unmark-spammer' ) ?>" class="confirm"><?php _e( "Not a Spammer", 'buddypress' ) ?></a></li> 
    138  
    139             <?php endif; ?> 
    140  
    141             <li><a href="<?php echo wp_nonce_url( bp_displayed_user_domain() . 'admin/delete-user/', 'delete-user' ) ?>" class="confirm"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); ?></a></li> 
     133            <li><a href="<?php bp_members_component_link( 'settings', 'delete-account' ); ?>"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); ?></a></li> 
    142134 
    143135            <?php do_action( 'bp_members_adminbar_admin_menu' ) ?> 
Note: See TracChangeset for help on using the changeset viewer.