Make WordPress Core


Ignore:
Timestamp:
10/04/2006 03:49:56 AM (15 years ago)
Author:
markjaquith
Message:

case insensitive sorting. props Nazgul. fixes #3108

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cron.php

    r4254 r4289  
    66    $key = md5(serialize($args));
    77    $crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
    8     ksort( $crons );
     8    uksort( $crons, "strnatcasecmp" );
    99    _set_cron_array( $crons );
    1010}
     
    1818        return false;
    1919    $crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
    20     ksort( $crons );
     20    uksort( $crons, "strnatcasecmp" );
    2121    _set_cron_array( $crons );
    2222}
Note: See TracChangeset for help on using the changeset viewer.