Make WordPress Core


Ignore:
Timestamp:
07/03/2020 11:13:30 PM (4 years ago)
Author:
azaozz
Message:

Media: Show an error message when a .heic file is uploaded that this type of files cannot be displayed in a web browser and suggesting to convert to JPEG. The message is shown by using filters, plugins that want to handle uploading of .heic files can remove it.

Props mattheweppelsheimer, mikeschroder, jeffr0, andraganescu, desrosj, azaozz.
Fixes #42775.

File:
1 edited

Legend:

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

    r48285 r48288  
    847847        /* translators: %s: File name. */
    848848        'error_uploading'           => __( '“%s” has failed to upload.' ),
     849        'unsupported_image'         => __( 'This image cannot be displayed in a web browser. For best results convert it to JPEG before uploading.' ),
    849850    );
    850851
Note: See TracChangeset for help on using the changeset viewer.