Make WordPress Core


Ignore:
Timestamp:
02/08/2025 03:58:11 PM (11 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/functions.php

    r59724 r59790  
    36733673function wp_nonce_ays( $action ) {
    36743674    // Default title and response code.
    3675     $title         = __( 'Something went wrong.' );
     3675    $title         = __( 'An error occurred.' );
    36763676    $response_code = 403;
    36773677
Note: See TracChangeset for help on using the changeset viewer.