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-includes/default-filters.php

    r48189 r48288  
    535535add_action( 'customize_controls_enqueue_scripts', 'wp_plupload_default_settings' );
    536536add_action( 'plugins_loaded', '_wp_add_additional_image_sizes', 0 );
     537add_filter( 'plupload_default_settings', 'wp_show_heic_upload_error' );
    537538
    538539// Nav menu.
Note: See TracChangeset for help on using the changeset viewer.