Thank you for addressing this, all my sites broke due to this issue as I speed optimize all my sites with advanced techniques. Kindly release 2.7.1 version as soon as possible.
Sorry for the bug shahriyarmj :-/
In the very short term you can:
1. add spaces after the comma (in exclusion fields/ your custom code)
2. OR use the version from https://downloads.wp.xz.cn/plugin/autoptimize.zip
3. OR change the code in autoptimizeScripts.php on line 270, from
$excl_js_arr = array_filter( array_map( 'trim', explode( ', ', $exclude_js ) ) );
into
$excl_js_arr = array_filter( array_map( 'trim', explode( ',', $exclude_js ) ) );
But obviously 2.7.1 will be release one of the following days with the fix integrated 🙂
Already installed the development fix. It works. Thank you 🙂
Hey,
Seems like CSS exclusions is not working well neither.
My exclusions have a space after the comma, but it doesn’t work. I’ve opened another ticket explaining it in detail.
I tried the version you posted here, but same issue…
Thanks
-
This reply was modified 6 years ago by
David13_13.
unlikely to be a regression, but lets investigate, I’ll comment in your own thread 🙂
That’s why I get a lot of complain about the exclusion not working anymore 🙃
Thanks for the post 👍
2.7.1 pushed out which fixes the spaces issue, thanks for you feedback & patience everyone! 🙂
Great, Thank you very much!