summaryrefslogtreecommitdiffstats
path: root/wp-includes/cron.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-10-05 17:45:26 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-10-05 17:45:26 +0000
commit767c3538b9f4aa2684429a7efea8f7728034c754 (patch)
tree8cc7b4bc82bfc8e5cc2179b7a8aa7b4f9a2be193 /wp-includes/cron.php
parent23c0a299ada091cdeece968ad5cd3bdd20f5ef3c (diff)
downloadwordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.gz
wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.tar.xz
wordpress-mu-767c3538b9f4aa2684429a7efea8f7728034c754.zip
WP Merge to rev 4347
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@789 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/cron.php')
-rw-r--r--wp-includes/cron.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/cron.php b/wp-includes/cron.php
index dd72d82..6731e70 100644
--- a/wp-includes/cron.php
+++ b/wp-includes/cron.php
@@ -5,7 +5,7 @@ function wp_schedule_single_event( $timestamp, $hook ) {
$crons = _get_cron_array();
$key = md5(serialize($args));
$crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
- ksort( $crons );
+ uksort( $crons, "strnatcasecmp" );
_set_cron_array( $crons );
}
@@ -17,7 +17,7 @@ function wp_schedule_event( $timestamp, $recurrence, $hook ) {
if ( !isset( $schedules[$recurrence] ) )
return false;
$crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
- ksort( $crons );
+ uksort( $crons, "strnatcasecmp" );
_set_cron_array( $crons );
}