[wp-trac] [WordPress Trac] #53843: Remove adding of rel="noopener" to links with target="_blank"
WordPress Trac
noreply at wordpress.org
Wed Jan 31 20:09:31 UTC 2024
#53843: Remove adding of rel="noopener" to links with target="_blank"
-----------------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+---------------------
Changes (by azaozz):
* keywords: has-patch => has-patch 2nd-opinion
Comment:
Replying to [comment:8 audrasjb]:
> I think this is ready to ship for 6.5, and we can target 6.6 to
deprecate the functions...
Yea, seems that `rel="noopener"` may not be needed any more. Thinking it
would be good to confirm this 100%. cAs far as I see the current
[https://developer.mozilla.org/en-
US/docs/Web/HTML/Element/a#browser_compatibility compatibility chart on
MDN] shows the Android WebView as not supporting this yet (this is the
browser used by default on phones and also embedded in all kinds of
devices like "smart" TVs, etc.).
Looking at the current patch it only removes the few `rel="noopener"` that
are hard-coded in wp-admin. If that's not needed any more thinking we
should stop adding it to the user content and deprecate the functions, see
`wp_targeted_link_rel()`, `wp_targeted_link_rel_callback()`,
`wp_init_targeted_link_rel_filters()`,
`wp_remove_targeted_link_rel_filters()` starting here:
https://github.com/WordPress/wordpress-develop/blob/6.4/src/wp-
includes/formatting.php#L3304.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53843#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list