Skip to content

Commit d0a16d7

Browse files
fix: phpunit
1 parent 26beaed commit d0a16d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/abstract/feedzy-rss-feeds-admin-abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ public function feedzy_image_encode( $img_url ) {
19271927
// Check if img url is set as an URL parameter.
19281928
$url_tab = wp_parse_url( $img_url );
19291929
if ( isset( $url_tab['query'] ) ) {
1930-
preg_match_all( '/(http|https):\/\/[^ ]+(\.gif|\.GIF|\.jpg|\.JPG|\.jpeg|\.JPEG|\.png|\.PNG)/', $url_tab['query'], $matches );
1930+
preg_match_all( '/(http|https):\/\/[^ ]+(\.gif|\.GIF|\.jpg|\.JPG|\.jpeg|\.JPEG|\.png|\.PNG|\.webp|\.WEBP|\.avif|\.AVIF)/', $url_tab['query'], $matches );
19311931
if ( isset( $matches[0][0] ) ) {
19321932
$img_url = $matches[0][0];
19331933
}

0 commit comments

Comments
 (0)