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/network/site-users.php

    r59784 r59789  
    156156                    if ( ! is_user_member_of_blog( $user_id ) ) {
    157157                        wp_die(
    158                             '<h1>' . __( 'Something went wrong.' ) . '</h1>' .
     158                            '<h1>' . __( 'An error occurred.' ) . '</h1>' .
    159159                            '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>',
    160160                            403
Note: See TracChangeset for help on using the changeset viewer.