Make WordPress Core


Ignore:
Timestamp:
02/05/2018 02:29:53 AM (9 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/class-wp-xmlrpc-server.php

    r42343 r42648  
    38803880
    38813881                if ( ! $comment_ID ) {
    3882                         return new IXR_Error( 403, __( 'An unidentified error has occurred.' ) );
     3882                        return new IXR_Error( 403, __( 'An error has occurred.' ) );
    38833883                }
    38843884
Note: See TracChangeset for help on using the changeset viewer.