case insensitive sorting. props Nazgul. fixes #3108

git-svn-id: http://svn.automattic.com/wordpress/trunk@4289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-10-04 03:49:56 +00:00
parent 0947d74004
commit a450c80a6a
4 changed files with 5 additions and 5 deletions

View File

@ -127,7 +127,7 @@ foreach ( $menu as $id => $data ) {
unset($id);
ksort($menu); // make it all pretty
uksort($menu, "strnatcasecmp"); // make it all pretty
if (! user_can_access_admin_page()) {
wp_die( __('You do not have sufficient permissions to access this page.') );

View File

@ -373,7 +373,7 @@ default:
<table class="widefat">
<?php
foreach($roleclasses as $role => $roleclass) {
ksort($roleclass);
uksort($roleclass, "strnatcasecmp");
?>
<tr>

View File

@ -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 );
}

View File

@ -70,7 +70,7 @@ function merge_filters($tag) {
}
if ( isset($wp_filter[$tag]) )
ksort( $wp_filter[$tag] );
uksort( $wp_filter[$tag], "strnatcasecmp" );
}