X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..88550bc3400cc7c035ff590ecb007c7938041ded:/wp-admin/users.php diff --git a/wp-admin/users.php b/wp-admin/users.php index 1f4fc5e7..64f029cd 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -10,7 +10,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'list_users' ) ) - wp_die( __( 'Cheatin’ uh?' ) ); + wp_die( __( 'Cheatin’ uh?' ), 403 ); $wp_list_table = _get_list_table('WP_Users_List_Table'); $pagenum = $wp_list_table->get_pagenum(); @@ -43,9 +43,9 @@ $help = '
' . __('Hovering over a row in the users list will display action li '
' . __('For more information:') . '
' . '' . __('Documentation on Managing Users') . '
' . '' . __('Descriptions of Roles and Capabilities') . '
' . - '' . __('Support Forums') . '
' + '' . __('Support Forums') . '
' ); if ( empty($_REQUEST) ) { @@ -128,7 +128,7 @@ case 'promote': // If the user doesn't already belong to the blog, bail. if ( is_multisite() && !is_user_member_of_blog( $id ) ) - wp_die(__('Cheatin’ uh?')); + wp_die( __( 'Cheatin’ uh?' ), 403 ); $user = get_userdata( $id ); $user->set_role($_REQUEST['new_role']); @@ -137,8 +137,6 @@ case 'promote': wp_redirect(add_query_arg('update', $update, $redirect)); exit(); -break; - case 'dodelete': if ( is_multisite() ) wp_die( __('User deletion is not allowed from this screen.') ); @@ -188,8 +186,6 @@ case 'dodelete': wp_redirect($redirect); exit(); -break; - case 'delete': if ( is_multisite() ) wp_die( __('User deletion is not allowed from this screen.') ); @@ -218,7 +214,6 @@ case 'delete':