[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
Fri Apr 12 22:29:54 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:  Formatting      |     Version:  5.1
 Severity:  normal          |  Resolution:
 Keywords:  has-unit-tests  |     Focuses:
----------------------------+------------------------------

Comment (by birgire):

 [attachment:"46886-2.diff"] contains the unit-test in
 [attachment:"46886.diff"] and the modification mentioned above, that makes
 sure the space prefixed target attribute: {{{' target'}}}, is contained in
 the string before passing it into the regex callback.

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


More information about the wp-trac mailing list