[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
Sun Mar 17 17:11:05 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 2nd-opinion | Focuses:
-----------------------------------+-----------------------
Changes (by audrasjb):
* keywords: => has-patch 2nd-opinion
Comment:
46421.diff adds rel noopener/noreferrer attribute to both Text and Custom
HTML widgets.
I propose to use the existing function `wp_targeted_link_rel()` which is
located and documented in `wp-inludes/formatting.php`.
The patch works fine on my side for both Text and Custom HTML widgets.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46421#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list