Some of you may have noticed that after you upgrade to WordPress 4.7.4, when you edit a post using the visual editor tab and add an internal link (a link to another page or post on your site) with a target=”blank” attribute, WordPress’s TinyMCE editor adds the following attribute to the link:

rel=”noopener noreferrer”

This has been touted as a security measure but for many people it is seriously messing up their referral tracking and analytics.

Fortunately it’s easy to disable, simply by adding the following code to your theme’s functions.php file (if you’re using a child theme, add it to the functions.php file in the child theme, not the parent theme).

function my_tiny_mce_before_init($mceInit) { $mceInit['allow_unsafe_link_target'] = true; return $mceInit;
}
add_filter('tiny_mce_before_init','my_tiny_mce_before_init');

So if you don’t want this attribute to be added by WordPress, you now have a way of removing it.

Share Button
Facebook Comments

More Stuff

Google’s own data proves two-factor is the best defense against mo... Every once in a while someone will ask me what is the best security advice. The long answer is “it depends on your threat model,” which is just a fan...
Which vSphere CPU Scheduler to Choose The release of vSphere 6.7 Update 2 brought with it a new vSphere CPU scheduler option, the Side-Channel Aware Scheduler version 2 (SCAv2) or “Sibling...
Magento GDPR: 7 Steps to Protect your Store (and your Customers) After decades of loose online legislation and abstract digital data guidelines, the Wild Western days of the internet are ending. User privacy and ...
What you missed in cybersecurity this week It’s been a busy week — it’s tough to keep up with all the cybersecurity news. We’ve collected some of the biggest cybersecurity stories from the week...
Spread the love

Posted by News Monkey