Ticket #2790: 2790.diff
File 2790.diff, 872 bytes (added by , 18 years ago) |
---|
-
cron.php
65 65 } 66 66 67 67 function spawn_cron() { 68 if ( array_shift( array_keys( get_option( 'cron' ) ) ) > time() ) 68 $crons = get_option( 'cron' ); 69 $keys = array_keys( $crons ); 70 if ( array_shift( $keys ) > time() ) 69 71 return; 70 72 71 73 $cron_url = get_settings( 'siteurl' ) . '/wp-cron.php'; … … 81 83 82 84 function wp_cron() { 83 85 $crons = get_option( 'cron' ); 84 if ( !is_array($crons) || array_shift( array_keys( $crons ) ) > time() ) 86 $keys = array_keys( $crons ); 87 if ( !is_array($crons) || array_shift( $keys ) > time() ) 85 88 return; 86 89 87 90 $schedules = wp_get_schedules(); … … 104 107 return array_merge( apply_filters( 'cron_schedules', array() ), $schedules ); 105 108 } 106 109 107 ?> 108 No newline at end of file 110 ?>