~canonical-sysadmins/wordpress/4.1.3

« back to all changes in this revision

Viewing changes to wp-admin/users.php

  • Committer: Nick Moffitt
  • Date: 2015-01-15 11:05:37 UTC
  • mfrom: (1.1.1 wp4-upstream)
  • Revision ID: nick.moffitt@canonical.com-20150115110537-8bp1y42eyg0jsa7c
Tags: 4.1
MergeĀ upstreamĀ versionĀ 4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
require_once( dirname( __FILE__ ) . '/admin.php' );
11
11
 
12
12
if ( ! current_user_can( 'list_users' ) )
13
 
        wp_die( __( 'Cheatin’ uh?' ) );
 
13
        wp_die( __( 'Cheatin’ uh?' ), 403 );
14
14
 
15
15
$wp_list_table = _get_list_table('WP_Users_List_Table');
16
16
$pagenum = $wp_list_table->get_pagenum();
128
128
 
129
129
                // If the user doesn't already belong to the blog, bail.
130
130
                if ( is_multisite() && !is_user_member_of_blog( $id ) )
131
 
                        wp_die(__('Cheatin’ uh?'));
 
131
                        wp_die( __( 'Cheatin’ uh?' ), 403 );
132
132
 
133
133
                $user = get_userdata( $id );
134
134
                $user->set_role($_REQUEST['new_role']);