]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/users.php
WordPress 4.1-scripts
[autoinstalls/wordpress.git] / wp-admin / users.php
index c83dbaa644896a8df705d568c678a52348616ac6..64f029cd812916efcb6e890107a5f545b573c78d 100644 (file)
@@ -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();
@@ -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']);