From 767c3538b9f4aa2684429a7efea8f7728034c754 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 5 Oct 2006 17:45:26 +0000 Subject: WP Merge to rev 4347 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@789 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes/cron.php') 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 ); } -- cgit