[wp-trac] [WordPress Trac] #40483: comment in wp_customize_support_script()

WordPress Trac noreply at wordpress.org
Wed Apr 19 14:34:36 UTC 2017


#40483: comment in wp_customize_support_script()
--------------------------+-----------------------------
 Reporter:  lriaudel      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Formatting    |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 in the file {{{wp-includes\theme.php}}} the function
 wp_customize_support_script() have a inline javascript and a comment line
 3040 :
 {{{
 // The customizer requires postMessage and CORS (if the site is cross
 domain)
 }}}

 But these comment induce problem when HTML code is minify/compress.

 It is better to put this :
 {{{
 /* The customizer requires postMessage and CORS (if the site is cross
 domain) */
 }}}

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


More information about the wp-trac mailing list