Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #47202, comment 1


Ignore:
Timestamp:
05/24/2019 08:02:28 PM (6 years ago)
Author:
starvoters1
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47202, comment 1

    initial v1  
    11I am having the same issue on both classic editor and Gutenberg and ended up coding a workaround to remove "noreferrer", would be great if this filter could be fixed so we can just use this instead.
     2
     3Editing to add, actually if I change the priority to 999, and remove the # of args setting it seems to be working fine on both Gutenberg and Classic, not sure of the priority needed. It may depend on theme and plugins installed too.
     4
     5{{{#!php
     6<?php
     7function filter_save_link_rel ( $rel, $link ) {
     8  return 'noopener';
     9}
     10add_filter( 'wp_targeted_link_rel', 'filter_save_link_rel', 999 );
     11}}}