bug in 1.8.3: inline javascript between comment tags broken
-
Afraid by solving one bug (comment tags that contained javascript or css were not ignored) another one got introduced; inline javascript between comment tags (as used to be done not to affect old browsers) gets broken.
A fix for this is coming soon (Monday or Tuesday), but for those who want to fix this now;
- open /wp-content/plugins/autoptimize/classes/autoptimizeScripts.php
- on line 158 (before the “//Check for already-minified code”) add this:
$this->jscode = $this->restore_comments($this->jscode);
- save changes and empty autoptimize cache
For those implementing this; do confirm if solves your issues!
(theoretically the same could happen with style-tags containing HTML-comments, but the chances of that happening are smaller, no “historic notation” to be taken into account)
sorry for the trouble guys & girls!
frank
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘bug in 1.8.3: inline javascript between comment tags broken’ is closed to new replies.