WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 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:
Milestone: Priority: normal
Severity: normal Version:
Component: Customize Keywords:
Focuses: javascript Cc:
PR Number:

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
2 years ago

  • Component changed from General to Customize
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 4.8.1 deleted

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.