Skip to content

Commit

Permalink
Remove WP default rel
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Aug 1, 2024
1 parent f193617 commit 37e3e0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/admin/feedzy-rss-feeds-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,12 @@ private function run_job( $job, $max ) {
$item,
$job
);

// Remove WordPress default link rel.
if ( isset( $item_link_data['attr']['rel'] ) ) {
add_filter( 'wp_targeted_link_rel', '__return_null' );
}

$item_link_attr = isset( $item_link_data['attr'] ) ? $item_link_data['attr'] : array();
$item_link_attr = array_map(
function ( $attr, $key ) {
Expand Down

0 comments on commit 37e3e0d

Please sign in to comment.