GridGallery conflicts with Jetpack
-
Hi! I’m one of the developers of Jetpack, and we have had a case of a conflict with GridGallery. The problem is this line, where your plugin tries to output footer styles:
If you change it like this, the problem is solved at least for XMLRPC requests that currently handle API output:
Index: src/GridGallery/Galleries/Module.php
===================================================================
--- src/GridGallery/Galleries/Module.php (revision 1875836)
+++ src/GridGallery/Galleries/Module.php (working copy)
@@ -89,7 +89,7 @@//on shutdown check is footer is printed , if not print scripts for our gallery
public function shutdown(){
- if(!(defined('DOING_AJAX') && DOING_AJAX) && !did_action('wp_footer')){
+ if(!(defined('DOING_AJAX') && DOING_AJAX) && !(defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) && !did_action('wp_footer')){
wp_print_footer_scripts();
}
}
- The topic ‘GridGallery conflicts with Jetpack’ is closed to new replies.