From 74edf979acfb04a98e290178e669bdb8d2da9392 Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Tue, 4 Aug 2026 09:33:29 +0530 Subject: [PATCH 1/2] Media: Correct the HEIC upload error message in the Media Library. The Media Library uploader stated that the image "cannot be displayed in a web browser". That is not accurate: HEIC images render fine in Safari and other browsers that support the format. The message is shown when the server's image editor cannot handle the `image/heic` mime type, and the same string is sent to every browser. It therefore cannot state whether the visitor's own browser can display the image, only that some browsers cannot. Reword the first sentence accordingly and keep the existing suggestion to convert to JPEG before uploading. Fixes #65800. --- src/wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index fd1f24a08968d..2ed8bc09192ed 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -1038,7 +1038,7 @@ function wp_default_scripts( $scripts ) { 'deleted' => __( 'moved to the Trash.' ), /* translators: %s: File name. */ 'error_uploading' => __( '“%s” has failed to upload.' ), - 'unsupported_image' => __( 'This image cannot be displayed in a web browser. For best results convert it to JPEG before uploading.' ), + 'unsupported_image' => __( 'This image may not display in all web browsers. For best results convert it to JPEG before uploading.' ), 'noneditable_image' => __( 'The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.' ), 'file_url_copied' => __( 'The file URL has been copied to your clipboard' ), ); From c9e8705a2eb218c6a673bf70321256951932e952 Mon Sep 17 00:00:00 2001 From: Khokan Sardar Date: Tue, 4 Aug 2026 22:25:17 +0530 Subject: [PATCH 2/2] Media: State the server cause in the HEIC upload error message. The message is shown when the server's image editor cannot handle image/heic, so it should name that cause rather than browser support. --- src/wp-includes/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 2ed8bc09192ed..64fdf47fb5602 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -1038,7 +1038,7 @@ function wp_default_scripts( $scripts ) { 'deleted' => __( 'moved to the Trash.' ), /* translators: %s: File name. */ 'error_uploading' => __( '“%s” has failed to upload.' ), - 'unsupported_image' => __( 'This image may not display in all web browsers. For best results convert it to JPEG before uploading.' ), + 'unsupported_image' => __( 'The server cannot process HEIC images. Convert it to JPEG before uploading.' ), 'noneditable_image' => __( 'The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.' ), 'file_url_copied' => __( 'The file URL has been copied to your clipboard' ), );