Changeset 8325
- Timestamp:
- 04/26/2014 06:45:35 PM (11 years ago)
- Location:
- branches/2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/bp-members/bp-members-functions.php
r8314 r8325 1054 1054 if ( empty( $user_id ) ) 1055 1055 $user_id = bp_loggedin_user_id(); 1056 1057 // Bail if account deletion is disabled1058 if ( bp_disable_account_deletion() )1059 return false;1060 1056 1061 1057 // Site admins cannot be deleted -
branches/2.0/bp-settings/bp-settings-actions.php
r7586 r8325 334 334 } 335 335 336 // Bail if account deletion is disabled 337 if ( bp_disable_account_deletion() && ! bp_current_user_can( 'delete_users' ) ) { 338 return false; 339 } 340 336 341 // Nonce check 337 342 check_admin_referer( 'delete-account' );
Note: See TracChangeset
for help on using the changeset viewer.