WordPress.org

Make WordPress Core

Changeset 4289


Ignore:
Timestamp:
10/04/06 03:49:56 (8 years ago)
Author:
markjaquith
Message:

case insensitive sorting. props Nazgul. fixes #3108

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu.php

    r4274 r4289  
    128128unset($id); 
    129129 
    130 ksort($menu); // make it all pretty 
     130uksort($menu, "strnatcasecmp"); // make it all pretty 
    131131 
    132132if (! user_can_access_admin_page()) { 
  • trunk/wp-admin/users.php

    r4275 r4289  
    374374<?php 
    375375foreach($roleclasses as $role => $roleclass) { 
    376     ksort($roleclass); 
     376    uksort($roleclass, "strnatcasecmp"); 
    377377?> 
    378378 
  • 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} 
  • trunk/wp-includes/plugin.php

    r4186 r4289  
    7171 
    7272    if ( isset($wp_filter[$tag]) ) 
    73         ksort( $wp_filter[$tag] ); 
     73        uksort( $wp_filter[$tag], "strnatcasecmp" ); 
    7474} 
    7575 
Note: See TracChangeset for help on using the changeset viewer.