[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
Tue Mar 19 11:15:45 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 has-unit-tests | Focuses:
--------------------------------------------------+-----------------------
Comment (by birgire):
Another suggestion of the inline comment could be:
{{{
// Adds noreferrer and noopener relationships, without duplicating values,
to all anchor tags that have a target attribute.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46421#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list