diff --git a/includes/utils.php b/includes/utils.php index ef1b4772e..4c2bc30e7 100644 --- a/includes/utils.php +++ b/includes/utils.php @@ -912,7 +912,10 @@ function process_media( $url, $post_id, $args = [] ) { 'jpeg', 'jpe', 'gif', - 'png' + 'png', + 'webp', + 'heic', + 'avif', ), $url, $post_id diff --git a/tests/php/includes/common.php b/tests/php/includes/common.php index d7ba845c9..e8c2a1645 100644 --- a/tests/php/includes/common.php +++ b/tests/php/includes/common.php @@ -266,6 +266,9 @@ function get_allowed_mime_types() { 'bmp' => 'image/bmp', 'tif|tiff' => 'image/tiff', 'ico' => 'image/x-icon', + 'webp' => 'image/webp', + 'heic' => 'image/heic', + 'avif' => 'image/avif', ]; }