Make WordPress Core


Ignore:
Timestamp:
02/05/2018 02:29:53 AM (7 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/script-loader.php

    r42616 r42648  
    138138        'wp-ajax-response', 'wpAjax', array(
    139139            'noPerm' => __( 'Sorry, you are not allowed to do that.' ),
    140             'broken' => __( 'An unidentified error has occurred.' ),
     140            'broken' => __( 'An error has occurred.' ),
    141141        )
    142142    );
     
    606606            'action'                  => __( 'Action' ),
    607607            'discardChanges'          => __( 'Discard changes' ),
    608             'cheatin'                 => __( 'Cheatin’ uh?' ),
     608            'cheatin'                 => __( 'An error has occurred.' ),
     609            'notAllowedHeading'       => __( 'You don’t have permission to do this.' ),
    609610            'notAllowed'              => __( 'Sorry, you are not allowed to customize this site.' ),
    610611            'previewIframeTitle'      => __( 'Site Preview' ),
     
    689690            'admin-tags', 'tagsl10n', array(
    690691                'noPerm' => __( 'Sorry, you are not allowed to do that.' ),
    691                 'broken' => __( 'An unidentified error has occurred.' ),
     692                'broken' => __( 'An error has occurred.' ),
    692693            )
    693694        );
     
    918919                    /* translators: %s: Importer name */
    919920                    'activateImporterLabel'    => __( 'Run %s' ),
    920                     'unknownError'             => __( 'An unidentified error has occurred.' ),
     921                    'unknownError'             => __( 'An error has occurred.' ),
    921922                    'connectionError'          => __( 'Connection lost or the server is busy. Please try again later.' ),
    922923                    'nonceError'               => __( 'An error has occurred. Please reload the page and try again.' ),
Note: See TracChangeset for help on using the changeset viewer.