[wp-trac] [WordPress Trac] #46886: wp_targeted_link_rel adds the rel attribute when the link has data-target=""
WordPress Trac
noreply at wordpress.org
Thu Apr 11 20:07:45 UTC 2019
#46886: wp_targeted_link_rel adds the rel attribute when the link has data-
target=""
--------------------------+-----------------------------
Reporter: jakeparis | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
To reproduce:
Create a link element (easiest to see bug in classic editor):
{{{
<a href="https://example.com" data-target="thisandthat">click here</a>
}}}
Save the post, and the link will have the rel="noopener noreferrer"
attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46886>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list