Add support for webp images

This commit is contained in:
Robin Cornett
2021-07-17 11:02:24 -04:00
parent 206f3c0f8e
commit 99093dbe98
@@ -109,7 +109,7 @@ class DisplayFeaturedImageGenesisSettingsValidateImage {
* @since 2.5.0
*/
private function allowed_file_types() {
$allowed = apply_filters( 'displayfeaturedimage_valid_img_types', array( 'jpg', 'jpeg', 'png', 'gif' ) );
$allowed = apply_filters( 'displayfeaturedimage_valid_img_types', array( 'jpg', 'jpeg', 'png', 'gif', 'webp' ) );
return is_array( $allowed ) ? $allowed : explode( ',', $allowed );
}