Plugin Adrotate not integrating with Jetpack plugin
-
Hello,
I used Jetpack on my site at one time, and I had the Photon function turned on. But a few days ago I decided to disable this function and all site images now do not use the Jetpack URL (https://wp.com/…), minus the image URLs created in Adrotate.
These image banners are inserted through the AdRotate plugin, and coincidentally only the images inserted with the plugin Adrotate is that Jetpack is not turning off the image accelerator. I have always used the Adrotate plugin along with the Jetpack plugin and it never gave a problem.
Em contato com o pessoal da Jetpack, eles me informaram que o problema é com o plugin Adrotate. Veja a resposta deles:
I believe this was caused by a change that was added to AdRotate in version 4.11.
While that code works, it does not check if Jetpack’s Photon service is active on the site; it only checks if the jetpack_photon_url function exists, which means Photon URLs will be used as long as you used a recent version of the plugin, and regardless of your plugin settings.
In order to solve this issue, I would recommend that you contact the plugin author, maybe via the thread you already started about this, and ask them to add an additional check to see if the Photon module is active, like so:
if ( class_exists( 'Jetpack_Photon' ) && Jetpack::is_module_active( 'photon' ) && function_exists( 'jetpack_photon_url' ) ) { // use the jetpack_photon_url function }Is there anything I can do?
Thanks!
The topic ‘Plugin Adrotate not integrating with Jetpack plugin’ is closed to new replies.