[wp-trac] [WordPress Trac] #46421: rel="noopener noreferrer" should be added to links with target="_blank" which are in text and HTML widgets

WordPress Trac noreply at wordpress.org
Wed Mar 20 19:51:09 UTC 2019


#46421: rel="noopener noreferrer" should be added to links with target="_blank"
which are in text and HTML widgets
---------------------------------------------+-----------------------
 Reporter:  mark-k                           |       Owner:  audrasjb
     Type:  defect (bug)                     |      Status:  accepted
 Priority:  normal                           |   Milestone:  5.2
Component:  Widgets                          |     Version:  5.1
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------

Comment (by audrasjb):

 Replying to [comment:9 afercia]:
 > One thing to discuss is the actual usefulness of `noreferrer`:
 > - it was used to support old browsers that had no support for `noopener`
 > - seems redundant after [41741] see #42036

 As mentionned on #43280 I think both of the rel attributes should be
 added, in order to
  keep some consistency with
  https://developer.wordpress.org/reference/functions/wp_targeted_link_rel/
  If we want to remove noreferrer, I believe we should remove it from that
  function ;-)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46421#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list