Make WordPress Core

Changeset 4290


Ignore:
Timestamp:
10/04/2006 03:50:14 AM (18 years ago)
Author:
markjaquith
Message:

case insensitive sorting. props Nazgul. fixes #3108

Location:
branches/2.0
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/menu.php

    r3185 r4290  
    5656
    5757do_action('admin_menu', '');
    58 ksort($menu); // make it all pretty
     58uksort($menu, "strnatcasecmp"); // make it all pretty
    5959
    6060if (! user_can_access_admin_page()) {
  • branches/2.0/wp-admin/users.php

    r3937 r4290  
    207207    <?php
    208208    foreach($roleclasses as $role => $roleclass) {
    209         ksort($roleclass);
     209        uksort($roleclass, "strnatcasecmp");
    210210        ?>
    211211
  • branches/2.0/wp-includes/functions.php

    r4231 r4290  
    11941194
    11951195    if ( isset($wp_filter[$tag]) )
    1196         ksort( $wp_filter[$tag] );
     1196        uksort( $wp_filter[$tag], "strnatcasecmp" );
    11971197}
    11981198
Note: See TracChangeset for help on using the changeset viewer.