diff --git a/includes/admin/feedzy-rss-feeds-import.php b/includes/admin/feedzy-rss-feeds-import.php index 8dd11e4f..aca98736 100644 --- a/includes/admin/feedzy-rss-feeds-import.php +++ b/includes/admin/feedzy-rss-feeds-import.php @@ -400,7 +400,10 @@ public function feedzy_import_feed_options() { $default_thumbnail_id = 0; if ( feedzy_is_pro() ) { $default_thumbnail_id = get_post_meta( $post->ID, 'default_thumbnail_id', true ); - if ( empty( $default_thumbnail_id ) && '0' !== $default_thumbnail_id ) { + if ( + empty( $default_thumbnail_id ) && + '0' !== $default_thumbnail_id // Can use the fallback image from Global Settings. + ) { $default_thumbnail_id = ! empty( $this->free_settings['general']['default-thumbnail-id'] ) ? (int) $this->free_settings['general']['default-thumbnail-id'] : 0; } } @@ -525,7 +528,7 @@ public function save_feedzy_import_feed_meta( $post_id, $post ) { add_post_meta( $post_id, $key, $value ); } if ( ! $value ) { - if ( 'default_thumbnail_id' === $key && '0' === $value ) { + if ( 'default_thumbnail_id' === $key && '0' === $value ) { // Mark the feed as having no default fallback image (including the global fallback). continue; } delete_post_meta( $post_id, $key );