[wp-trac] [WordPress Trac] #41192: javascript comment in theme.php
WordPress Trac
noreply at wordpress.org
Wed Jun 28 09:43:45 UTC 2017
#41192: javascript comment in theme.php
--------------------------+------------------------------
Reporter: pimplaatsman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: javascript
--------------------------+------------------------------
Comment (by pimplaatsman):
Sorry no double slashes, added extra space in between:
"/ / " comments in javascript break functionality.
change request:
/ / The customizer requires postMessage and CORS (if the site is cross
domain)
To:
/* The customizer requires postMessage and CORS (if the site is cross
domain) */
Replying to [ticket:41192 pimplaatsman]:
> Hi!
>
> Since some site minifi their HTML "//" comments in javascript break
functionality.
> For what I know now, the only occurrence is in theme.php:3040
>
> change request:
> // The customizer requires postMessage and CORS (if the site is cross
domain)
> To:
> /* The customizer requires postMessage and CORS (if the site is cross
domain) */
>
> Regards!
> Pim
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41192#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list