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. Built from https://develop.svn.wordpress.org/trunk@59789 git-svn-id: http://core.svn.wordpress.org/trunk@59131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -635,7 +635,7 @@ function wp_edit_theme_plugin_file( $args ) {
|
||||
wp_opcache_invalidate( $real_file, true );
|
||||
|
||||
if ( ! isset( $result['message'] ) ) {
|
||||
$message = __( 'Something went wrong.' );
|
||||
$message = __( 'An error occurred. Please try again later.' );
|
||||
} else {
|
||||
$message = $result['message'];
|
||||
unset( $result['message'] );
|
||||
|
||||
Reference in New Issue
Block a user