From e630114d094e6acea24fb27b331adab29a7c3fc8 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Mon, 12 Aug 2024 16:47:08 +0530 Subject: [PATCH] Fix the issue with preview import data --- includes/abstract/feedzy-rss-feeds-admin-abstract.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/abstract/feedzy-rss-feeds-admin-abstract.php b/includes/abstract/feedzy-rss-feeds-admin-abstract.php index a08f7ffd..e3e0d7a9 100644 --- a/includes/abstract/feedzy-rss-feeds-admin-abstract.php +++ b/includes/abstract/feedzy-rss-feeds-admin-abstract.php @@ -1740,6 +1740,11 @@ public function feedzy_retrieve_image( $item, $sc = null ) { } $the_thumbnail = html_entity_decode( $the_thumbnail, ENT_QUOTES, 'UTF-8' ); + + if ( isset( $sc['_dryrun_'] ) && 'yes' === $sc['_dryrun_'] ) { + return $the_thumbnail; + } + if ( ! defined( 'REST_REQUEST' ) || ! REST_REQUEST ) { $feed_url = $this->normalize_urls( $sc['feeds'] ); $the_thumbnail = ! empty( $the_thumbnail ) ? $the_thumbnail : apply_filters( 'feedzy_default_image', $sc['default'], $feed_url );