WordPress.org

Make WordPress Core

Ticket #14668: 14668.diff

File 14668.diff, 620 bytes (added by jgadbois, 4 years ago)
  • wp-includes/cron.php

     
    5656        $key = md5(serialize($args)); 
    5757        if ( !isset( $schedules[$recurrence] ) ) 
    5858                return false; 
     59        if ( isset( $crons[$timestamp], $crons[$timestamp][$hook], $crons[$timestamp][$hook][$key] ) ) 
     60                return false; 
    5961        $crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] ); 
    6062        uksort( $crons, "strnatcasecmp" ); 
    6163        _set_cron_array( $crons );