mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user