Skip to content

Commit 76f3901

Browse files
Revert initial casting to int
Co-authored-by: Peter Wilson <[email protected]>
1 parent 3bba3b9 commit 76f3901

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
@@ -359,7 +359,7 @@ function wp_reschedule_event( $timestamp, $recurrence, $hook, $args = array(), $
359359
}
360360

361361
// Now we try to get it from the saved interval in case the schedule disappears.
362-
if ( 0 === (int) $interval ) {
362+
if ( 0 === $interval ) {
363363
$scheduled_event = wp_get_scheduled_event( $hook, $args, $timestamp );
364364

365365
if ( $scheduled_event && isset( $scheduled_event->interval ) ) {

0 commit comments

Comments
 (0)