We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35b8bb commit 76ae32bCopy full SHA for 76ae32b
includes/abstract/feedzy-rss-feeds-admin-abstract.php
@@ -1840,9 +1840,9 @@ public function feedzy_image_encode( $img_url ) {
1840
// Check if img url is set as an URL parameter.
1841
$url_tab = wp_parse_url( $img_url );
1842
if ( isset( $url_tab['query'] ) ) {
1843
- preg_match_all( '/(http|https):\/\/[^ ]+(\.gif|\.GIF|\.jpg|\.JPG|\.jpeg|\.JPEG|\.png|\.PNG)/', $url_tab['query'], $img_url );
1844
- if ( isset( $img_url[0][0] ) ) {
1845
- $img_url = $img_url[0][0];
+ preg_match_all( '/(http|https):\/\/[^ ]+(\.gif|\.GIF|\.jpg|\.JPG|\.jpeg|\.JPEG|\.png|\.PNG)/', $url_tab['query'], $matches );
+ if ( isset( $matches[0][0] ) ) {
+ $img_url = $matches[0][0];
1846
}
1847
1848
0 commit comments