diff options
-rw-r--r-- | src/js/_enqueues/admin/tags.js | 2 | ||||
-rw-r--r-- | src/js/_enqueues/lib/ajax-response.js | 2 | ||||
-rw-r--r-- | src/js/_enqueues/wp/theme-plugin-editor.js | 2 | ||||
-rw-r--r-- | src/js/_enqueues/wp/updates.js | 2 | ||||
-rw-r--r-- | src/wp-admin/customize.php | 4 | ||||
-rw-r--r-- | src/wp-admin/includes/class-custom-image-header.php | 10 | ||||
-rw-r--r-- | src/wp-admin/includes/file.php | 2 | ||||
-rw-r--r-- | src/wp-admin/includes/revision.php | 2 | ||||
-rw-r--r-- | src/wp-admin/media-upload.php | 4 | ||||
-rw-r--r-- | src/wp-admin/network/site-users.php | 2 | ||||
-rw-r--r-- | src/wp-admin/themes.php | 4 | ||||
-rw-r--r-- | src/wp-admin/users.php | 2 |
12 files changed, 19 insertions, 19 deletions
diff --git a/src/js/_enqueues/admin/tags.js b/src/js/_enqueues/admin/tags.js index 2e55e2ed20..edc61c80c9 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('<div class="error"><p>' + wp.i18n.__( 'Something went wrong.' ) + '</p></div>'); + $('#ajax-response').empty().append('<div class="error"><p>' + wp.i18n.__( 'An error occurred while processing your request. Please try again later.' ) + '</p></div>'); tr.children().css('backgroundColor', ''); } }); 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($){ diff --git a/src/js/_enqueues/wp/theme-plugin-editor.js b/src/js/_enqueues/wp/theme-plugin-editor.js index 2fd866531f..1e3ac0d904 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 396fcbb6ff..aca73fdd4f 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.' ), 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 b27292d9eb..9fe0b3f6d3 100644 --- a/src/wp-admin/customize.php +++ b/src/wp-admin/customize.php @@ -76,8 +76,8 @@ if ( $wp_customize->changeset_post_id() ) { if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'This changeset cannot be further modified.' ) . '</p>' . + '<h1>' . __( 'An error occurred while saving your changeset.' ) . '</h1>' . + '<p>' . __( 'Please try again or start a new changeset. This changeset cannot be further modified.' ) . '</p>' . '<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>', 403 ); diff --git a/src/wp-admin/includes/class-custom-image-header.php b/src/wp-admin/includes/class-custom-image-header.php index 2e1bf47fda..54be1d90e4 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 @@ endif; if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>', + '<h1>' . __( 'An error occurred while processing your header image.' ) . '</h1>' . + '<p>' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '</p>', 403 ); } @@ -1018,8 +1018,8 @@ endif; if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>', + '<h1>' . __( 'An error occurred while processing your header image.' ) . '</h1>' . + '<p>' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '</p>', 403 ); } @@ -1029,7 +1029,7 @@ endif; && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . + '<h1>' . __( 'An error occurred while processing your header image.' ) . '</h1>' . '<p>' . __( 'The active theme does not support a flexible sized header image.' ) . '</p>', 403 ); diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index b1ea3fba1b..152a1e2f21 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 error occurred. Please try again later.' ); } else { $message = $result['message']; unset( $result['message'] ); diff --git a/src/wp-admin/includes/revision.php b/src/wp-admin/includes/revision.php index ab3842fc55..df7201e958 100644 --- a/src/wp-admin/includes/revision.php +++ b/src/wp-admin/includes/revision.php @@ -466,7 +466,7 @@ function wp_print_revision_templates() { <script id="tmpl-revisions-diff" type="text/html"> <div class="loading-indicator"><span class="spinner"></span></div> - <div class="diff-error"><?php _e( 'Sorry, something went wrong. The requested comparison could not be loaded.' ); ?></div> + <div class="diff-error"><?php _e( 'An error occurred while loading the comparison. Please refresh the page and try again.' ); ?></div> <div class="diff"> <# _.each( data.fields, function( field ) { #> <h2>{{ field.name }}</h2> diff --git a/src/wp-admin/media-upload.php b/src/wp-admin/media-upload.php index 015bc9d63d..2755cb3214 100644 --- a/src/wp-admin/media-upload.php +++ b/src/wp-admin/media-upload.php @@ -35,8 +35,8 @@ $post_id = isset( $post_id ) ? (int) $post_id : 0; // Require an ID for the edit screen. if ( isset( $action ) && 'edit' === $action && ! $ID ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . - '<p>' . __( 'Invalid item ID.' ) . '</p>', + '<h1>' . __( 'An error occurred during the upload process.' ) . '</h1>' . + '<p>' . __( 'Invalid item ID. You can view all media items in the <a href="upload.php">Media Library</a>.' ) . '</p>', 403 ); } diff --git a/src/wp-admin/network/site-users.php b/src/wp-admin/network/site-users.php index 3b970c5e53..b3041176d3 100644 --- a/src/wp-admin/network/site-users.php +++ b/src/wp-admin/network/site-users.php @@ -155,7 +155,7 @@ if ( $action ) { // If the user doesn't already belong to the blog, bail. if ( ! is_user_member_of_blog( $user_id ) ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . + '<h1>' . __( 'An error occurred.' ) . '</h1>' . '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 403 ); diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index a7ebd42c60..24b93d4426 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -24,7 +24,7 @@ if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { if ( ! $theme->exists() || ! $theme->is_allowed() ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . + '<h1>' . __( 'An error occurred.' ) . '</h1>' . '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 403 ); @@ -67,7 +67,7 @@ if ( current_user_can( 'switch_themes' ) && isset( $_GET['action'] ) ) { if ( ! $theme->exists() ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . + '<h1>' . __( 'An error occurred while deleting the theme.' ) . '</h1>' . '<p>' . __( 'The requested theme does not exist.' ) . '</p>', 403 ); diff --git a/src/wp-admin/users.php b/src/wp-admin/users.php index c6f0efe9d4..6e10c2b831 100644 --- a/src/wp-admin/users.php +++ b/src/wp-admin/users.php @@ -155,7 +155,7 @@ switch ( $wp_list_table->current_action() ) { // If the user doesn't already belong to the blog, bail. if ( is_multisite() && ! is_user_member_of_blog( $id ) ) { wp_die( - '<h1>' . __( 'Something went wrong.' ) . '</h1>' . + '<h1>' . __( 'An error occurred.' ) . '</h1>' . '<p>' . __( 'One of the selected users is not a member of this site.' ) . '</p>', 403 ); |