We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e3e0d commit 8758af5Copy full SHA for 8758af5
includes/admin/feedzy-rss-feeds-import.php
@@ -1485,8 +1485,14 @@ private function run_job( $job, $max ) {
1485
);
1486
1487
// Remove WordPress default link rel.
1488
- if ( isset( $item_link_data['attr']['rel'] ) ) {
1489
- add_filter( 'wp_targeted_link_rel', '__return_null' );
+ $link_rel = isset( $item_link_data['attr']['rel'] ) ? $item_link_data['attr']['rel'] : '';
+ if ( $link_rel ) {
1490
+ add_filter(
1491
+ 'wp_targeted_link_rel',
1492
+ function() use ( $link_rel ) {
1493
+ return $link_rel;
1494
+ }
1495
+ );
1496
}
1497
1498
$item_link_attr = isset( $item_link_data['attr'] ) ? $item_link_data['attr'] : array();
0 commit comments