[wp-trac] [WordPress Trac] #41793: comment in wp-includes/theme.php > function wp_customize_support_script causing issues with minification

WordPress Trac noreply at wordpress.org
Mon Sep 4 14:49:42 UTC 2017


#41793: comment in wp-includes/theme.php > function wp_customize_support_script
causing issues with minification
--------------------------+-----------------------------
 Reporter:  jiggaman      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.8.1
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 in the file: wp-includes/theme.php

 function wp_customize_support_script () contains a comment on line 3044:

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

 in some inline minification or white space removal plugins this causes
 issues...can we make the comment read:
 /* The customizer requires postMessage and CORS (if the site is cross
 domain) */

 and perhaps do that as a rule for all inline javascript comments?

 Safety first!

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


More information about the wp-trac mailing list