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 ecff7e5 commit 665e37bCopy full SHA for 665e37b
includes/abstract/feedzy-rss-feeds-admin-abstract.php
@@ -1866,9 +1866,9 @@ public function feedzy_image_encode( $img_url ) {
1866
// Check if img url is set as an URL parameter.
1867
$url_tab = wp_parse_url( $img_url );
1868
if ( isset( $url_tab['query'] ) ) {
1869
- preg_match_all( '/(http|https):\/\/[^ ]+(\.gif|\.GIF|\.jpg|\.JPG|\.jpeg|\.JPEG|\.png|\.PNG)/', $url_tab['query'], $img_url );
1870
- if ( isset( $img_url[0][0] ) ) {
1871
- $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];
1872
}
1873
1874
0 commit comments