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

    r59784 r59789  
    156156            if ( is_multisite() && ! is_user_member_of_blog( $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.