~canonical-sysadmins/wordpress/4.1.3

« back to all changes in this revision

Viewing changes to wp-admin/network/site-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:
133
133
 
134
134
                                        // If the user doesn't already belong to the blog, bail.
135
135
                                        if ( !is_user_member_of_blog( $user_id ) )
136
 
                                                wp_die(__('Cheatin’ uh?'));
 
136
                                                wp_die( __( 'Cheatin’ uh?' ), 403 );
137
137
 
138
138
                                        $user = get_userdata( $user_id );
139
139
                                        $user->set_role( $_REQUEST['new_role'] );