Skip to content

Commit

Permalink
Fix cron worker not being scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Oct 9, 2017
1 parent 17d1b1c commit 134326a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WP_Queue/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function init() {

if ( ! wp_next_scheduled( "wp_queue_worker_{$this->id}" ) ) {
// Schedule health check
wp_schedule_event( time(), 'wp_queue_cron_interval', "wp_queue_worker_{$this->id}" );
wp_schedule_event( time(), "wp_queue_cron_interval_{$this->id}", "wp_queue_worker_{$this->id}" );
}

return true;
Expand Down

0 comments on commit 134326a

Please sign in to comment.