WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/05/2018 02:29:53 AM (3 years ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r42570 r42648  
    27192719        );
    27202720    } else {
    2721         $html = __( 'Are you sure you want to do this?' );
     2721        $html = __( 'The link you followed no longer exists.' );
    27222722        if ( wp_get_referer() ) {
    27232723            $html .= '</p><p>';
     
    27302730    }
    27312731
    2732     wp_die( $html, __( 'WordPress Failure Notice' ), 403 );
     2732    wp_die( $html, __( 'An error has occurred.' ), 403 );
    27332733}
    27342734
Note: See TracChangeset for help on using the changeset viewer.