From 09b9af2c76efac969e048fd676176330b39307ff Mon Sep 17 00:00:00 2001 From: Adam Silverstein Date: Tue, 16 Nov 2021 20:01:00 +0000 Subject: [PATCH] Media: improve error message for failed image uploads. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clarify error language and change the maximum suggested size to match the large image threshold. Props zodiac1978, SergeyBiryukov, antpb, webcommsat, hellofromTonya.  Fixes 53985. Built from https://develop.svn.wordpress.org/trunk@52189 git-svn-id: http://core.svn.wordpress.org/trunk@51781 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/script-loader.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index c9673fad5f..972b4497a6 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -883,7 +883,7 @@ function wp_default_scripts( $scripts ) { 'missing_upload_url' => __( 'There was a configuration error. Please contact the server administrator.' ), 'upload_limit_exceeded' => __( 'You may only upload 1 file.' ), 'http_error' => __( 'Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.' ), - 'http_error_image' => __( 'Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.' ), + 'http_error_image' => __( 'The server cannot process the image. This can happen if the server is busy or does not have enough resources to complete the task. Uploading a smaller image may help. Suggested maximum size is 2560 pixels.' ), 'upload_failed' => __( 'Upload failed.' ), /* translators: 1: Opening link tag, 2: Closing link tag. */ 'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 2df31031a7..82369b3ee6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52188'; +$wp_version = '5.9-alpha-52189'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.