[wp-trac] [WordPress Trac] #47244: wp_targeted_link_rel filter should not be applied to 'Custom HTML` widget

WordPress Trac noreply at wordpress.org
Wed May 15 22:32:14 UTC 2019


#47244: wp_targeted_link_rel filter should not be applied to 'Custom HTML` widget
--------------------------------------+-----------------------
 Reporter:  fierevere                 |       Owner:  audrasjb
     Type:  defect (bug)              |      Status:  assigned
 Priority:  high                      |   Milestone:  5.2.1
Component:  Widgets                   |     Version:  5.2
 Severity:  major                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------

Comment (by SergeyBiryukov):

 For reference, the broken code using the example from ticket description:
 {{{
 <!--LiveInternet counter--><script type="text/javascript">
 document.write("<a href='//www.liveinternet.ru/click' "+
 "target=_blank rel="noopener noreferrer"><img
 src='//counter.yadro.ru/hit?t52.6;r"+
 escape(document.referrer)+((typeof(screen)=="undefined")?"":
 ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
 screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
 ";h"+escape(document.title.substring(0,150))+";"+Math.random()+
 "' alt='' title='LiveInternet: number of pageviews and visitors"+
 " for 24 hours is shown' "+
 "border='0' width='88' height='31'><\/a>")
 </script><!--/LiveInternet-->
 }}}

 Note the incorrect quotes in `rel="noopener noreferrer"`.

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


More information about the wp-trac mailing list