diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-28 12:13:39 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-02-28 12:13:39 +0000 |
| commit | c897a0ba270f217512e37f8bd520dd24b35b058d (patch) | |
| tree | ab5683db986751fe3d79c9aeddcbbafa708870c7 /wp-includes/cron.php | |
| parent | 8399b696d7660728535b85dbd90466f0e82e6fc8 (diff) | |
WP Merge to rev 4956
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@904 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/cron.php')
| -rw-r--r-- | wp-includes/cron.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-includes/cron.php b/wp-includes/cron.php index 3d24431..40004ca 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -54,7 +54,7 @@ function wp_unschedule_event( $timestamp, $hook, $args = array() ) { function wp_clear_scheduled_hook( $hook ) {
$args = array_slice( func_get_args(), 1 );
-
+
while ( $timestamp = wp_next_scheduled( $hook, $args ) )
wp_unschedule_event( $timestamp, $hook, $args );
}
@@ -73,10 +73,10 @@ function wp_next_scheduled( $hook, $args = array() ) { function spawn_cron() {
$crons = _get_cron_array();
-
+
if ( !is_array($crons) )
return;
-
+
$keys = array_keys( $crons );
if ( array_shift( $keys ) > time() )
return;
@@ -98,7 +98,7 @@ function wp_cron() { return;
$crons = _get_cron_array();
-
+
if ( !is_array($crons) )
return;
|
