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:
parent
3099359887
commit
6ee8a99b6a
@ -117,7 +117,7 @@ foreach ( $crons as $timestamp => $cronhooks ) {
|
|||||||
|
|
||||||
$schedule = $v['schedule'];
|
$schedule = $v['schedule'];
|
||||||
|
|
||||||
if ( ! $schedule ) {
|
if ( $schedule ) {
|
||||||
$new_args = array( $timestamp, $schedule, $hook, $v['args'] );
|
$new_args = array( $timestamp, $schedule, $hook, $v['args'] );
|
||||||
call_user_func_array( 'wp_reschedule_event', $new_args );
|
call_user_func_array( 'wp_reschedule_event', $new_args );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user