This is with regard to:
wp-cloudflare-page-cache/libs/cache_controller.class.php
Apparently also need this fix:
var swcfpc_wordpress_btn_publish = document.querySelector(".editor-post-publish-button__button");
Rather than a const
Plugin Contributor
iSaumya
(@isaumya)
Hi @harryfear,
Thanks for reporting this. This is happening cause the Oxygen Builder is running the same code twice when the code is supposed to be part of the page once.
Thought I HATE using var in JavaScript and always stick with either let or const, but due to the fact that Oxygen Builder is running the same code twice and they have no intention to fix their code, there is no other way but to use the disgusting var.
Anyways, I’ve implemented the fix you mentioned above and you can download the current dev build of the plugin from here. Please download it and test it. Let me know if this resolves the issue or not and also if every feature of this plugin is working as it should.
Hey Saumya,
Love your work!
Checked the updated plugin and I can confirm it works perfectly. Thank you!
Will this go into a new minor release at some point?
Plugin Contributor
iSaumya
(@isaumya)
Hi @harryfear,
Yes once I have a few things together will release the minor update.
But still hate using var. It’s like I’m crying while typing this code.
Plugin Contributor
iSaumya
(@isaumya)
Thanks. If you haven’t already please consider sharing a review in the review section of the plugin.
This isn’t live yet, right?
Plugin Contributor
iSaumya
(@isaumya)
Hi, no it isn’t live yet. Will push an update soon.
Pardon me; is this live now?