W3 Total Cache compatibility issue
-
I’ve had compatibility issues with W3 Total Cache and WP jQuery Plus.
When minifying the page, W3TC see’s the fallback ‘<script’ and … basically just messes it up. I realise it’s more their bug but it’s so much easier to fix on this end. You just have to change…
echo '<script>window.jQuery || document.write(\'<script src="' . includes_url('js/jquery/jquery.js') . '"><\/script>\')</script>' . "\n";
to…
echo '<script>window.jQuery || document.write(\'<\'+\'script src="' . includes_url('js/jquery/jquery.js') . '"><\/script>\')</script>' . "\n";
and the same change on the jquery migrate fallback.
I’ve updated my copy of the plugin so it works for me, but hopefully this is something you’d be willing to patch in before your next release, so it doesn’t break if I update. Thanks!! ??
- The topic ‘W3 Total Cache compatibility issue’ is closed to new replies.