[wp-trac] [WordPress Trac] #39482: wp_customize_support_script() has a javascript comment which breaks one-lined html.

WordPress Trac noreply at wordpress.org
Thu Jan 5 13:35:30 UTC 2017


#39482: wp_customize_support_script() has a javascript comment which breaks one-
lined html.
--------------------------+-----------------------------
 Reporter:  agrabush      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In wp-includes\theme.php, line 3019, there's a javascript comment:

 {{{
 // The customizer requires postMessage and CORS (if the site is cross
 domain)
 }}}

 This comment is printed inline in the html. If the html is stripped of
 tabs and newlines before output, this comment will comment out all the
 following code as well.

 Suggestions:
 Either remove the comment, or use the "/* */" comment style, so the
 comment has a proper ending.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39482>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list