Changeset 32152 for trunk/src/wp-admin/network/users.php
- Timestamp:
- 04/20/2015 03:26:24 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/users.php
r32116 r32152 15 15 16 16 if ( ! current_user_can( 'manage_network_users' ) ) 17 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ));17 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 18 18 19 19 function confirm_delete_users( $users ) { … … 128 128 case 'deleteuser': 129 129 if ( ! current_user_can( 'manage_network_users' ) ) 130 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ));130 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 131 131 132 132 check_admin_referer( 'deleteuser' ); … … 149 149 case 'allusers': 150 150 if ( !current_user_can( 'manage_network_users' ) ) 151 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ));151 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 152 152 153 153 if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) { … … 162 162 case 'delete': 163 163 if ( ! current_user_can( 'delete_users' ) ) 164 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ));164 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 165 165 $title = __( 'Users' ); 166 166 $parent_file = 'users.php'; … … 211 211 check_admin_referer( 'ms-users-delete' ); 212 212 if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) ) 213 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ));213 wp_die( __( 'You do not have permission to access this page.' ), 403 ); 214 214 215 215 if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.