Support » Plugin: Google XML Sitemaps » sm_ping infalting cron events + bugfix

  • Hello,

    There is a bug in the plugin that, if wp-cron is disabled, results in sm_ping events being added to wp-cron to no end.

    Fix is simple, just change
    line 268 of file google-sitemap-generator/sitemap-loader.php
    from

    
    wp_schedule_single_event(time() + 5, 'sm_ping');
    

    to

    
    if(!wp_next_scheduled('sm_ping')) {
      wp_schedule_single_event(time() + 5, 'sm_ping');
    }
    
    • This topic was modified 2 weeks, 1 day ago by  dsar.
Viewing 1 replies (of 1 total)
  • Hi dsar,

    thanks a lot! You´re my hero of the day 😉
    I´ve had this issue since month ago…

    Regards,
    Tobi

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.