Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #609 conflict with wp cloudflare super page cache #650

Merged

Conversation

joejoe04
Copy link
Contributor

@joejoe04 joejoe04 commented Jan 3, 2022

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.

@joejoe04 joejoe04 requested a review from a team January 3, 2022 20:58
if (
! is_admin()
||
'media_page_imagify-bulk-optimization' !== $hook_suffix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that @markonikolic985 told me that we need to do that in all imagify admin pages not just only bulk optimization one, right?

@joejoe04 joejoe04 requested a review from a team January 11, 2022 16:37
@iCaspar
Copy link
Contributor

iCaspar commented Jan 20, 2022

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.

@remyperona remyperona added this to the 2.0 milestone May 19, 2022
@remyperona remyperona changed the title Fix/609 conflict with wp cloudflare super page cache Fixes #609 conflict with wp cloudflare super page cache May 19, 2022
@GeekPress GeekPress self-requested a review July 5, 2022 15:32
Copy link
Contributor

@GeekPress GeekPress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA done, no conflict anymore.

@remyperona remyperona merged commit 2d1a5a7 into develop Jul 5, 2022
@remyperona remyperona deleted the fix/609-conflict-with-wp-cloudflare-super-page-cache branch July 5, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conflict with WP Cloudflare Super Page Cache
5 participants