mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
0947d74004
commit
a450c80a6a
@ -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.') );
|
||||
|
@ -373,7 +373,7 @@ default:
|
||||
<table class="widefat">
|
||||
<?php
|
||||
foreach($roleclasses as $role => $roleclass) {
|
||||
ksort($roleclass);
|
||||
uksort($roleclass, "strnatcasecmp");
|
||||
?>
|
||||
|
||||
<tr>
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ function merge_filters($tag) {
|
||||
}
|
||||
|
||||
if ( isset($wp_filter[$tag]) )
|
||||
ksort( $wp_filter[$tag] );
|
||||
uksort( $wp_filter[$tag], "strnatcasecmp" );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user