Changeset 5301 for trunk/bp-members/bp-members-actions.php
- Timestamp:
- 11/08/2011 01:14:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-actions.php
r4961 r5301 123 123 global $bp; 124 124 125 if ( !is_super_admin() || bp_is_my_profile() || ! $bp->displayed_user->id)125 if ( !is_super_admin() || bp_is_my_profile() || !bp_displayed_user_id() ) 126 126 return false; 127 127 … … 133 133 do_action( 'bp_core_before_action_delete_user', $errors ); 134 134 135 if ( bp_core_delete_account( $bp->displayed_user->id) ) {135 if ( bp_core_delete_account( bp_displayed_user_id() ) ) { 136 136 bp_core_add_message( sprintf( __( '%s has been deleted from the system.', 'buddypress' ), $bp->displayed_user->fullname ) ); 137 137 } else {
Note: See TracChangeset
for help on using the changeset viewer.