Make WordPress Core


Ignore:
Timestamp:
02/08/2025 03:58:11 PM (5 months ago)
Author:
audrasjb
Message:

General: Error messages improvements in /wp-includes files.

This changeset improves a bunch of error messages, notably replacing the good old cryptic "Something went wrong" message with more helpful information.

Props peterwilsoncc, netweb, karmatosed, JoshuaWold, mrtortai, audrasjb, sukhendu2002, joedolson.
Fixes #43622.

File:
1 edited

Legend:

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

    r59770 r59790  
    811811        array(
    812812            'noPerm' => __( 'Sorry, you are not allowed to do that.' ),
    813             'broken' => __( 'Something went wrong.' ),
     813            'broken' => __( 'An error occurred while processing your request. Please try again later.' ),
    814814        )
    815815    );
     
    12931293            'action'                  => __( 'Action' ),
    12941294            'discardChanges'          => __( 'Discard changes' ),
    1295             'cheatin'                 => __( 'Something went wrong.' ),
     1295            'cheatin'                 => __( 'An error occurred. Please try again later.' ),
    12961296            'notAllowedHeading'       => __( 'You need a higher level of permission.' ),
    12971297            'notAllowed'              => __( 'Sorry, you are not allowed to customize this site.' ),
Note: See TracChangeset for help on using the changeset viewer.