Skip to content

Commit d06f7ea

Browse files
fix: assign global global fallback
1 parent 545a871 commit d06f7ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1312,10 +1312,10 @@ private function run_job( $job, $max ) {
13121312
}
13131313

13141314
// Get default thumbnail ID.
1315-
$default_thumbnail = ! empty( $this->free_settings['general']['default-thumbnail-id'] ) ? (int) $this->free_settings['general']['default-thumbnail-id'] : 0;
1315+
$global_fallback_thumbnail = ! empty( $this->free_settings['general']['default-thumbnail-id'] ) ? (int) $this->free_settings['general']['default-thumbnail-id'] : 0;
13161316
if ( feedzy_is_pro() ) {
13171317
$default_thumbnail = get_post_meta( $job->ID, 'default_thumbnail_id', true );
1318-
$default_thumbnail = ! empty( $default_thumbnail ) ? explode( ',', (string) $default_thumbnail ) : array();
1318+
$default_thumbnail = ! empty( $default_thumbnail ) ? explode( ',', (string) $default_thumbnail ) : $global_fallback_thumbnail;
13191319
}
13201320

13211321
// Note: this implementation will only work if only one of the fields is allowed to provide

0 commit comments

Comments
 (0)