Skip to content

Commit

Permalink
Merge pull request #968 from Codeinwp/bugfix/pro/700
Browse files Browse the repository at this point in the history
Fixed the issue with preview import data
  • Loading branch information
vytisbulkevicius authored Aug 30, 2024
2 parents 98101af + e630114 commit c8b4953
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/abstract/feedzy-rss-feeds-admin-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit c8b4953

Please sign in to comment.