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
This commit is contained in:
Peter Wilson 2019-06-22 13:43:52 +00:00
parent 73ad55051b
commit bb965baeec
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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.