summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/_enqueues/lib/ajax-response.js
diff options
context:
space:
mode:
authorJb Audras <audrasjb@git.wordpress.org>2025-02-08 15:51:03 +0000
committerJb Audras <audrasjb@git.wordpress.org>2025-02-08 15:51:03 +0000
commit3428f3a0f972e6f46f48827edb61e13a7b953583 (patch)
tree6bf60528dcbc07d0a3cc9c3a55d9e16bcac69176 /src/js/_enqueues/lib/ajax-response.js
parentfc8fa6a615083419689d36b785908b79ad153c73 (diff)
downloadwordpress-3428f3a0f972e6f46f48827edb61e13a7b953583.tar.gz
wordpress-3428f3a0f972e6f46f48827edb61e13a7b953583.zip
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. git-svn-id: https://develop.svn.wordpress.org/trunk@59789 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/lib/ajax-response.js')
-rw-r--r--src/js/_enqueues/lib/ajax-response.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/_enqueues/lib/ajax-response.js b/src/js/_enqueues/lib/ajax-response.js
index af59d8183a..d1a05ca52c 100644
--- a/src/js/_enqueues/lib/ajax-response.js
+++ b/src/js/_enqueues/lib/ajax-response.js
@@ -83,7 +83,7 @@ window.wpAjax = jQuery.extend( {
selector = jQuery( selector );
return !wpAjax.invalidateForm( selector.find('.form-required').filter( function() { return jQuery('input:visible', this).val() === ''; } ) ).length;
}
-}, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'Something went wrong.' } );
+}, wpAjax || { noPerm: 'Sorry, you are not allowed to do that.', broken: 'An error occurred while processing your request. Please refresh the page and try again.' } );
// Basic form validation.
jQuery( function($){