WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2018 12:14:20 AM (23 months ago)
Author:
SergeyBiryukov
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, kristastevens for language; dmsnell for original patch; peterwilsoncc.
Merged [42648] and [42719] to the 4.9 branch.
Fixes #38332.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/functions.php

    r42804 r42811  
    26052605        );
    26062606    } else {
    2607         $html = __( 'Are you sure you want to do this?' );
     2607        $html = __( 'The link you followed has expired.' );
    26082608        if ( wp_get_referer() ) {
    26092609            $html .= '</p><p>';
     
    26152615    }
    26162616
    2617     wp_die( $html, __( 'WordPress Failure Notice' ), 403 );
     2617    wp_die( $html, __( 'Something went wrong.' ), 403 );
    26182618}
    26192619
Note: See TracChangeset for help on using the changeset viewer.