Make WordPress Core


Ignore:
Timestamp:
02/08/2025 03:51:03 PM (13 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/media-upload.php

    r56536 r59789  
    3636if ( isset( $action ) && 'edit' === $action && ! $ID ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName
    3737    wp_die(
    38         '<h1>' . __( 'Something went wrong.' ) . '</h1>' .
    39         '<p>' . __( 'Invalid item ID.' ) . '</p>',
     38        '<h1>' . __( 'An error occurred during the upload process.' ) . '</h1>' .
     39        '<p>' . __( 'Invalid item ID. You can view all media items in the <a href="upload.php">Media Library</a>.' ) . '</p>',
    4040        403
    4141    );
Note: See TracChangeset for help on using the changeset viewer.