Make WordPress Core

Ticket #47589: 47589.diff

File 47589.diff, 417 bytes (added by peterwilsoncc, 6 years ago)
  • src/wp-cron.php

    diff --git a/src/wp-cron.php b/src/wp-cron.php
    index 7853e79e96..d9a2c94072 100644
    a b foreach ( $crons as $timestamp => $cronhooks ) { 
    117117
    118118                        $schedule = $v['schedule'];
    119119
    120                         if ( ! $schedule ) {
     120                        if ( $schedule ) {
    121121                                $new_args = array( $timestamp, $schedule, $hook, $v['args'] );
    122122                                call_user_func_array( 'wp_reschedule_event', $new_args );
    123123                        }