From bb965baeec226cd64d614ad13ddc755e10b6cb92 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Sat, 22 Jun 2019 13:43:52 +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. Built from https://develop.svn.wordpress.org/trunk@45562 git-svn-id: http://core.svn.wordpress.org/trunk@45373 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-cron.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-cron.php b/wp-cron.php index 7853e79e96..d9a2c94072 100644 --- a/wp-cron.php +++ b/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 ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index c73301f508..c7d245b350 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45561'; +$wp_version = '5.3-alpha-45562'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.