Ticket #3108: 3108.diff

File 3108.diff, 1.8 kB (added by Nazgul, 2 years ago)
  • wp-admin/menu.php

    old new  
    124124        } 
    125125} 
    126126 
    127 ksort($menu); // make it all pretty 
     127uksort($menu, "strnatcasecmp"); // make it all pretty 
    128128 
    129129if (! user_can_access_admin_page()) { 
    130130        wp_die( __('You do not have sufficient permissions to access this page.') ); 
  • wp-admin/users.php

    old new  
    373373<table class="widefat"> 
    374374<?php 
    375375foreach($roleclasses as $role => $roleclass) { 
    376         ksort($roleclass); 
     376        uksort($roleclass, "strnatcasecmp"); 
    377377?> 
    378378 
    379379<tr> 
  • wp-includes/cron.php

    old new  
    55        $crons = _get_cron_array(); 
    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} 
    1111 
     
    1717        if ( !isset( $schedules[$recurrence] ) ) 
    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} 
    2323 
  • wp-includes/plugin.php

    old new  
    7070        } 
    7171 
    7272        if ( isset($wp_filter[$tag]) ) 
    73                 ksort( $wp_filter[$tag] ); 
     73                uksort( $wp_filter[$tag], "strnatcasecmp" ); 
    7474} 
    7575 
    7676