[wp-trac] [WordPress Trac] #37941: add rel="noopener noreferrer" to any target="_blank"
WordPress Trac
noreply at wordpress.org
Tue Jan 2 01:54:39 UTC 2018
#37941: add rel="noopener noreferrer" to any target="_blank"
----------------------------------------+------------------------------
Reporter: Presskopp | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Security | Version:
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+------------------------------
Comment (by nicola.peluchetti):
@iandunn I added a patch to fix
{{{
$wp_admin_bar->add_node
}}}
behaviour so that, when adding a link with 'target' => '_blank', it will
add 'noopener noreferrer' to the rel ( creating it if it doesn't exists ).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37941#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list