mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user