Make WordPress Core


Ignore:
Timestamp:
02/08/2025 03:51:03 PM (14 months ago)
Author:
audrasjb
Message:

Administration: Error messages improvements in WP Admin.

This changeset improves a bunch of WP-Admin 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.
See #43622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r59480 r59789  
    7777    if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) {
    7878        wp_die(
    79             '<h1>' . __( 'Something went wrong.' ) . '</h1>' .
    80             '<p>' . __( 'This changeset cannot be further modified.' ) . '</p>' .
     79            '<h1>' . __( 'An error occurred while saving your changeset.' ) . '</h1>' .
     80            '<p>' . __( 'Please try again or start a new changeset. This changeset cannot be further modified.' ) . '</p>' .
    8181            '<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>',
    8282            403
Note: See TracChangeset for help on using the changeset viewer.