Skip to content

Commit c8b4953

Browse files
Merge pull request #968 from Codeinwp/bugfix/pro/700
Fixed the issue with preview import data
2 parents 98101af + e630114 commit c8b4953

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,11 @@ public function feedzy_retrieve_image( $item, $sc = null ) {
17401740
}
17411741

17421742
$the_thumbnail = html_entity_decode( $the_thumbnail, ENT_QUOTES, 'UTF-8' );
1743+
1744+
if ( isset( $sc['_dryrun_'] ) && 'yes' === $sc['_dryrun_'] ) {
1745+
return $the_thumbnail;
1746+
}
1747+
17431748
if ( ! defined( 'REST_REQUEST' ) || ! REST_REQUEST ) {
17441749
$feed_url = $this->normalize_urls( $sc['feeds'] );
17451750
$the_thumbnail = ! empty( $the_thumbnail ) ? $the_thumbnail : apply_filters( 'feedzy_default_image', $sc['default'], $feed_url );

0 commit comments

Comments
 (0)