[wp-trac] [WordPress Trac] #46316: wp_targeted_link_rel corrupts JSON content

WordPress Trac noreply at wordpress.org
Fri Mar 1 08:13:52 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  |     Focuses:
--------------------------+------------------------------
Changes (by TobiasBg):

 * keywords:   => dev-feedback


Comment:

 Could the regex that searches for `target` attributes be changed to only
 find those with `"` but not `\"` (JSON encoded) quotation marks around the
 attribute value?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46316#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list