Skip to content

Commit 0184a4d

Browse files
Use is_numeric() instead of is_int()
Co-authored-by: Peter Wilson <[email protected]>
1 parent 76f3901 commit 0184a4d

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 ) || $interval <= 0 ) {
420+
if ( ! is_numeric( $interval ) || $interval <= 0 ) {
421421
if ( $wp_error ) {
422422
return new WP_Error(
423423
'invalid_schedule',

0 commit comments

Comments
 (0)