Skip to content

Commit b39b67d

Browse files
committed
Fix logic inversion
1 parent 101f58f commit b39b67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $
417417
}
418418

419419
// Now we assume something is wrong and fail to schedule.
420-
if ( ! is_int( $interval ) || 0 <= $interval ) {
420+
if ( ! is_int( $interval ) || $interval <= 0 ) {
421421
if ( $wp_error ) {
422422
return new WP_Error(
423423
'invalid_schedule',

0 commit comments

Comments
 (0)