[wp-trac] [WordPress Trac] #53843: Remove adding of rel="noopener" to links with target="_blank"

WordPress Trac noreply at wordpress.org
Mon Sep 30 05:18:10 UTC 2024


#53843: Remove adding of rel="noopener" to links with target="_blank"
-------------------------------------------------+-------------------------
 Reporter:  azaozz                               |       Owner:
                                                 |  peterwilsoncc
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.7
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests changes-    |     Focuses:
  requested                                      |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59120" 59120]:
 {{{
 #!CommitTicketReference repository="" revision="59120"
 General: Remove `noopener` from links opening in a new tab.

 Removes the automatic addition of `rel="noopener noreferrer"` from links
 targeting a new tab or window, `target='_blank'`. Since this was
 introduced, supported browsers have changed their security policies and no
 longer allow the opened link to have JavaScript access to the previous
 tab.

 Deprecates:

 * `wp_targeted_link_rel()`
 * `wp_targeted_link_rel_callback()`
 * `wp_init_targeted_link_rel_filters()`: converted to a noop function
 * `wp_remove_targeted_link_rel_filters()`: converted to a noop function

 The deprecated functions are retained in `formatting.php` as in
 `SHORTINIT` mode the file is included while `deprecated.php` is not.

 This also removes the `noopener` from links hard coded within the
 WordPress dashboard linking to documentation and other resources.

 Props audrasjb, azaozz, dhruval04, dorzki, neo2k23, presskopp,
 sabernhardt, swissspidy, tobiasbg.
 Fixes #53843.
 }}}

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


More information about the wp-trac mailing list