diff --git a/src/js/_enqueues/admin/tags.js b/src/js/_enqueues/admin/tags.js index 2e55e2ed20d93..edc61c80c987f 100644 --- a/src/js/_enqueues/admin/tags.js +++ b/src/js/_enqueues/admin/tags.js @@ -59,7 +59,7 @@ jQuery( function($) { tr.children().css('backgroundColor', ''); } else { - $('#ajax-response').empty().append('

' + wp.i18n.__( 'Something went wrong.' ) + '

'); + $('#ajax-response').empty().append('

' + wp.i18n.__( 'An error occurred while processing your request. Please try again later.' ) + '

'); tr.children().css('backgroundColor', ''); } }); diff --git a/src/js/_enqueues/lib/ajax-response.js b/src/js/_enqueues/lib/ajax-response.js index af59d8183ad61..d1a05ca52c8b8 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($){ diff --git a/src/js/_enqueues/wp/theme-plugin-editor.js b/src/js/_enqueues/wp/theme-plugin-editor.js index 2fd866531f362..1e3ac0d904c77 100644 --- a/src/js/_enqueues/wp/theme-plugin-editor.js +++ b/src/js/_enqueues/wp/theme-plugin-editor.js @@ -226,7 +226,7 @@ wp.themePluginEditor = (function( $ ) { var notice = $.extend( { code: 'save_error', - message: __( 'Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.' ) + message: __( 'An error occurred while saving your changes. Please try again. If the problem persists, you may need to manually update the file via FTP.' ) }, response, { diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js index 396fcbb6ffe06..b0846d6eafa54 100644 --- a/src/js/_enqueues/wp/updates.js +++ b/src/js/_enqueues/wp/updates.js @@ -2333,7 +2333,7 @@ * 'update' or 'install'. */ wp.updates.isValidResponse = function( response, action ) { - var error = __( 'Something went wrong.' ), + var error = __( 'An error occurred during the update process. Please try again or contact support for assistance.' ), errorMessage; // Make sure the response is a valid data object and not a Promise object. diff --git a/src/wp-admin/customize.php b/src/wp-admin/customize.php index b27292d9eb949..9fe0b3f6d3912 100644 --- a/src/wp-admin/customize.php +++ b/src/wp-admin/customize.php @@ -76,8 +76,8 @@ if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) { wp_die( - '

' . __( 'Something went wrong.' ) . '

' . - '

' . __( 'This changeset cannot be further modified.' ) . '

' . + '

' . __( 'An error occurred while saving your changeset.' ) . '

' . + '

' . __( 'Please try again or start a new changeset. This changeset cannot be further modified.' ) . '

' . '

' . __( 'Customize New Changes' ) . '

', 403 ); diff --git a/src/wp-admin/includes/class-custom-image-header.php b/src/wp-admin/includes/class-custom-image-header.php index 2e1bf47fdaf5e..54be1d90e4228 100644 --- a/src/wp-admin/includes/class-custom-image-header.php +++ b/src/wp-admin/includes/class-custom-image-header.php @@ -830,8 +830,8 @@ public function step_2() { if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( - '

' . __( 'Something went wrong.' ) . '

' . - '

' . __( 'The active theme does not support uploading a custom header image.' ) . '

', + '

' . __( 'An error occurred while processing your header image.' ) . '

' . + '

' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '

', 403 ); } @@ -1018,8 +1018,8 @@ public function step_3() { if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( - '

' . __( 'Something went wrong.' ) . '

' . - '

' . __( 'The active theme does not support uploading a custom header image.' ) . '

', + '

' . __( 'An error occurred while processing your header image.' ) . '

' . + '

' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '

', 403 ); } @@ -1029,7 +1029,7 @@ public function step_3() { && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { wp_die( - '

' . __( 'Something went wrong.' ) . '

' . + '

' . __( 'An error occurred while processing your header image.' ) . '

' . '

' . __( 'The active theme does not support a flexible sized header image.' ) . '

', 403 ); diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index b1ea3fba1bda2..505c02278c0d8 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -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 unexpected error occurred. Please try again later or contact support.' ); } else { $message = $result['message']; unset( $result['message'] ); diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php index ab3842fc552bc..df7201e958098 100644 --- a/src/wp-admin/includes/revision.php +++ b/src/wp-admin/includes/revision.php @@ -466,7 +466,7 @@ function wp_print_revision_templates() {