Make WordPress Core


Ignore:
Timestamp:
07/03/2020 11:13:30 PM (5 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-admin/includes/admin-filters.php

    r48121 r48288  
    1616// Media hooks.
    1717add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );
     18add_filter( 'plupload_init', 'wp_show_heic_upload_error' );
    1819
    1920add_action( 'media_upload_image', 'wp_media_upload_handler' );
Note: See TracChangeset for help on using the changeset viewer.