From 6ee8a99b6a8712d6f025003a084e496626673f22 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sat, 22 Jun 2019 13:42:58 +0000 Subject: [PATCH] Cron: Fix condition reversed in [45559]. In [45559] a test for not-falsey was reversed to a falsey check. Props obenland. Fixes #47589. git-svn-id: https://develop.svn.wordpress.org/trunk@45562 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-cron.php b/src/wp-cron.php index 7853e79e96..d9a2c94072 100644 --- a/src/wp-cron.php +++ b/src/wp-cron.php @@ -117,7 +117,7 @@ foreach ( $crons as $timestamp => $cronhooks ) { $schedule = $v['schedule']; - if ( ! $schedule ) { + if ( $schedule ) { $new_args = array( $timestamp, $schedule, $hook, $v['args'] ); call_user_func_array( 'wp_reschedule_event', $new_args ); }