From 37e3e0d8ec8be67b1dfbdc02c347c294d125b8ac Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Thu, 1 Aug 2024 16:27:47 +0530 Subject: [PATCH] Remove WP default rel --- includes/admin/feedzy-rss-feeds-import.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/admin/feedzy-rss-feeds-import.php b/includes/admin/feedzy-rss-feeds-import.php index 0e7613d0..3caed268 100644 --- a/includes/admin/feedzy-rss-feeds-import.php +++ b/includes/admin/feedzy-rss-feeds-import.php @@ -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 ) {