General: Replace Cheatin’ uh? with friendlier error messages.
While intended as a playful error message, `Cheatin’ uh?` can be interpreted as insulting or accusatory in an already stressful situation. This replaces Cheatin’ with more meaningful error messages, depending on the error that occurs. Props ElectricFeet, EricMeyer, karmatosed, dd32, BandonRandon, melchoyce for language; dmsnell for original patch; peterwilsoncc. Fixes #38332. Built from https://develop.svn.wordpress.org/trunk@42648 git-svn-id: http://core.svn.wordpress.org/trunk@42477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -159,7 +159,7 @@ if ( $action ) {
|
||||
// If the user doesn't already belong to the blog, bail.
|
||||
if ( ! is_user_member_of_blog( $user_id ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
|
||||
'<h1>' . __( 'An error has occurred.' ) . '</h1>' .
|
||||
'<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user