Changeset 31658 for trunk/src/wp-admin/network/users.php
- Timestamp:
- 03/07/2015 05:59:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/users.php
r31656 r31658 15 15 16 16 if ( ! current_user_can( 'manage_network_users' ) ) 17 wp_die( __( 'You do not have permission to access this page.' ) );17 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 18 18 19 19 function confirm_delete_users( $users ) { … … 124 124 case 'deleteuser': 125 125 if ( ! current_user_can( 'manage_network_users' ) ) 126 wp_die( __( 'You do not have permission to access this page.' ) );126 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 127 127 128 128 check_admin_referer( 'deleteuser' ); … … 145 145 case 'allusers': 146 146 if ( !current_user_can( 'manage_network_users' ) ) 147 wp_die( __( 'You do not have permission to access this page.' ) );147 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 148 148 149 149 if ( ( isset( $_POST['action']) || isset($_POST['action2'] ) ) && isset( $_POST['allusers'] ) ) { … … 158 158 case 'delete': 159 159 if ( ! current_user_can( 'delete_users' ) ) 160 wp_die( __( 'You do not have permission to access this page.' ) );160 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 161 161 $title = __( 'Users' ); 162 162 $parent_file = 'users.php'; … … 207 207 check_admin_referer( 'ms-users-delete' ); 208 208 if ( ! ( current_user_can( 'manage_network_users' ) && current_user_can( 'delete_users' ) ) ) 209 wp_die( __( 'You do not have permission to access this page.' ) );209 wp_die( __( 'You do not have permission to access this page.' ), '', array( 'response' => 403 ) ); 210 210 211 211 if ( ! empty( $_POST['blog'] ) && is_array( $_POST['blog'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.