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.



git-svn-id: https://develop.svn.wordpress.org/trunk@42648 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2018-02-05 02:29:53 +00:00
parent d512973c84
commit f317869c7f
24 changed files with 47 additions and 46 deletions
+2 -2
View File
@@ -2718,7 +2718,7 @@ function wp_nonce_ays( $action ) {
wp_logout_url( $redirect_to )
);
} else {
$html = __( 'Are you sure you want to do this?' );
$html = __( 'The link you followed no longer exists.' );
if ( wp_get_referer() ) {
$html .= '</p><p>';
$html .= sprintf(
@@ -2729,7 +2729,7 @@ function wp_nonce_ays( $action ) {
}
}
wp_die( $html, __( 'WordPress Failure Notice' ), 403 );
wp_die( $html, __( 'An error has occurred.' ), 403 );
}
/**