[wp-trac] [WordPress Trac] #53843: Remove adding of rel="noopener" to links with target="_blank"
WordPress Trac
noreply at wordpress.org
Mon Jun 24 06:37:38 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.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by neo2k23):
Sorry to hop into this as mentioned in here
https://core.trac.wordpress.org/ticket/61482 I think the code needs
patching anyway as it does not only work on target="_blank"
If i add
{{{
<a target="_blank" href="https://myforum.com">Go to the Forum</a>
<a target="_self" href="https://myforum.com">Go to the Forum</a>
<a target="_parent" href="https://myforum.com">Go to the Forum</a>
<a target="_top" href="https://myforum.com">Go to the Forum</a>
}}}
they all get the rel="noopener" added to the a-tag
{{{
<a target="_blank" href="https://myforum.com" rel="noopener">Go to the
Forum</a>
<a target="_self" href="https://myforum.com" rel="noopener">Go to the
Forum</a>
<a target="_parent" href="https://myforum.com" rel="noopener">Go to the
Forum</a>
<a target="_top" href="https://myforum.com" rel="noopener">Go to the
Forum</a>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53843#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list