Skip to content

Commit

Permalink
change Cheatin’ uh? with friendlier error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpaul committed Sep 16, 2020
1 parent 5d531e4 commit af00ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions/user-roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function update_users_print_role() {

// If the user doesn't already belong to the blog, bail.
if ( is_multisite() && ! is_user_member_of_blog( $id ) ) {
wp_die( __( 'Cheatin’ uh?' ), 403 );
wp_die( __( 'Something went wrong.' ), 403 );
}

$user = get_userdata( $id );
Expand Down

0 comments on commit af00ed3

Please sign in to comment.