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
This commit is contained in:
Peter Wilson 2019-06-22 13:42:58 +00:00
parent 3099359887
commit 6ee8a99b6a

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