Ticket #3142: 3142-2.0.5.diff
| File 3142-2.0.5.diff, 0.6 kB (added by westi, 2 years ago) |
|---|
-
wp-admin/user-edit.php
old new 47 47 } 48 48 49 49 default: 50 include ('admin-header.php');51 52 50 $profileuser = new WP_User($user_id); 53 51 54 if (!current_user_can('edit_users')) $errors['head'] = __('You do not have permission to edit this user.'); 52 if (!current_user_can('edit_users')) { 53 die(__('You do not have permission to edit this user.')); 54 } 55 56 include ('admin-header.php'); 55 57 ?> 56 58 57 59 <?php if ( isset($_GET['updated']) ) : ?>
