[wp-trac] [WordPress Trac] #46316: wp_targeted_link_rel corrupts JSON content
WordPress Trac
noreply at wordpress.org
Tue May 14 14:23:36 UTC 2019
#46316: wp_targeted_link_rel corrupts JSON content
-------------------------------------------------+-------------------------
Reporter: TobiasBg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Formatting | Version: 5.1
Severity: normal | Resolution:
Keywords: dev-feedback has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by birgire):
* keywords: dev-feedback => dev-feedback has-patch has-unit-tests
Comment:
What about using the same delimiter for the injected {{{rel}}} attribute,
as for the existing {{{target}}} attribute, i.e. if we have
{{{target=\"_blank\"}}} then add {{{rel=\"noopener noreferrer\"}}}, else
{{{rel="noopener noreferrer"}}}?
This is the approach in [attachment:"46316.diff"].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46316#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list