Make WordPress Core

Changeset 59590


Ignore:
Timestamp:
01/07/2025 10:51:51 PM (6 weeks ago)
Author:
adamsilverstein
Message:

Media: improve error messages for unsupported uploads.

Improve language explaining the reason for failure when uploading a modern image format like WebP or AVIF that the server doesn’t handle.

Props adamsilverstein, Cybr.
Fixes #61361.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r59558 r59590  
    984984        'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.' ),
    985985        'zero_byte_file'            => __( 'This file is empty. Please try another.' ),
    986         'invalid_filetype'          => __( 'Sorry, you are not allowed to upload this file type.' ),
     986        'invalid_filetype'          => __( 'This file cannot be processed by the web server.' ),
    987987        'not_an_image'              => __( 'This file is not an image. Please try another.' ),
    988988        'image_memory_exceeded'     => __( 'Memory exceeded. Please try another smaller file.' ),
     
    10081008        'error_uploading'           => __( '“%s” has failed to upload.' ),
    10091009        'unsupported_image'         => __( 'This image cannot be displayed in a web browser. For best results convert it to JPEG before uploading.' ),
    1010         'noneditable_image'         => __( 'This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading.' ),
     1010        'noneditable_image'         => __( 'The web server cannot generate responsive image sizes for this image. Convert it to JPEG or PNG before uploading.' ),
    10111011        'file_url_copied'           => __( 'The file URL has been copied to your clipboard' ),
    10121012    );
Note: See TracChangeset for help on using the changeset viewer.