Closed joejoe04 closed 2 years ago
Ready for @wp-media/qa Acceptance criteria: When Cloudflare Super Page Cache and Imagify are both active, there is no JS sweetalert error in console on any of the Imagify plugin admin pages, and bulk works as expected.
closes #609
When both Imagify and WP Cloudflare Super Page Cache plugins are enabled at the same time, the Bulk Optimization will not start when "Imagif'em All' is pressed. This was due to the fact they both used the same Sweet Alert script and this caused a conflict.
This fixes that conflict by checking if the WP Cloudflare Super Page Cache Sweet Alert script is enqueued, and if so, it dequeues it.