infiniscroll issue
-
Hi, I got a problem on my inifiniscroll page with your plugin.
You made awesome plugin and even made reinit function gapStart(); but…
my infiniscroll based on admin-ajax.php requests and that requests always return is_admin() === true, so your plugin not initialize.
Look at plugin.php:57if ( is_admin() ) { require_once( dirname( __FILE__ ) . '/settings.class.php' ); GAP_Settings_Page::load(); // <-- With admin-ajax.php we are always here } else { require_once( dirname( __FILE__ ) . '/gap.class.php' ); GIF_Animation_Preview::load(); }
I added additional condition.
if ( is_admin() ) {
replaced with
if ( is_admin() &!(defined( 'DOING_AJAX' ) && DOING_AJAX)) {
hope it’ll help someone
- The topic ‘infiniscroll issue’ is closed to new replies.