Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#41793 closed defect (bug) (duplicate)

comment in wp-includes/theme.php > function wp_customize_support_script causing issues with minification

Reported by: jiggaman Owned by:
Priority: normal Milestone:
Component: Customize Version:
Severity: normal Keywords:
Cc: Focuses: javascript

Description

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!

Change History (1)

#1 @ocean90
9 years ago

  • Component GeneralCustomize
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
  • Version 4.8.1

Hello @jiggaman, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #39482.

Note: See TracTickets for help on using tickets.