Support » Plugin: WP CleanFix » Please merge your cron schedules instead of nuking them

  • Resolved Michael De Wildt

    (@michaeldewildt)


    In wpdk-wordpress-plugin.php:570 there is function that does not preserve cron schedules that other plugins have inserted.

    Please a good WP citizen and update the function to merge your schedules instead of nuking them. Like this:

    public function cron_schedules( $schedules ) {
        $new_schedules = array(
          'half_hour'   => array(
            'interval' => 1800,
            'display'  => __( 'Half hour', WPDK_TEXTDOMAIN )
          ),
          'two_minutes' => array(
            'interval' => 60 * 2,
            'display'  => __( 'Two minutes', WPDK_TEXTDOMAIN )
          ),
        );
        return array_merge( $schedules, $new_schedules );
      }

    Cheers,
    Mikey

    http://wordpress.org/plugins/wp-cleanfix/

Viewing 1 replies (of 1 total)
  • Plugin Author gfazioli

    (@gfazioli)

    Hi Michael,
    thanks for your comment. We’re digging into it and we’ll patch as soon as we can.

    For the record: the latest version of CleanFix is now bundled with wpXtreme, a FREE plugin for which we can provide our users with full support.

    Cheers,

Viewing 1 replies (of 1 total)
  • The topic ‘Please merge your cron schedules instead of nuking them’ is closed to new replies.