diff --git a/includes/admin/feedzy-rss-feeds-import.php b/includes/admin/feedzy-rss-feeds-import.php index 3caed268..6c065f64 100644 --- a/includes/admin/feedzy-rss-feeds-import.php +++ b/includes/admin/feedzy-rss-feeds-import.php @@ -1485,8 +1485,14 @@ private function run_job( $job, $max ) { ); // Remove WordPress default link rel. - if ( isset( $item_link_data['attr']['rel'] ) ) { - add_filter( 'wp_targeted_link_rel', '__return_null' ); + $link_rel = isset( $item_link_data['attr']['rel'] ) ? $item_link_data['attr']['rel'] : ''; + if ( $link_rel ) { + add_filter( + 'wp_targeted_link_rel', + function() use ( $link_rel ) { + return $link_rel; + } + ); } $item_link_attr = isset( $item_link_data['attr'] ) ? $item_link_data['attr'] : array();