case insensitive sorting. props Nazgul. fixes #3108

git-svn-id: https://develop.svn.wordpress.org/trunk@4289 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2006-10-04 03:49:56 +00:00
parent 7704ddd684
commit bc7cd93309
4 changed files with 5 additions and 5 deletions

View File

@@ -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 );
}