mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-12 13:44:21 +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);
|
unset($id);
|
||||||
|
|
||||||
ksort($menu); // make it all pretty
|
uksort($menu, "strnatcasecmp"); // make it all pretty
|
||||||
|
|
||||||
if (! user_can_access_admin_page()) {
|
if (! user_can_access_admin_page()) {
|
||||||
wp_die( __('You do not have sufficient permissions to access this page.') );
|
wp_die( __('You do not have sufficient permissions to access this page.') );
|
||||||
|
@ -373,7 +373,7 @@ default:
|
|||||||
<table class="widefat">
|
<table class="widefat">
|
||||||
<?php
|
<?php
|
||||||
foreach($roleclasses as $role => $roleclass) {
|
foreach($roleclasses as $role => $roleclass) {
|
||||||
ksort($roleclass);
|
uksort($roleclass, "strnatcasecmp");
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -5,7 +5,7 @@ function wp_schedule_single_event( $timestamp, $hook ) {
|
|||||||
$crons = _get_cron_array();
|
$crons = _get_cron_array();
|
||||||
$key = md5(serialize($args));
|
$key = md5(serialize($args));
|
||||||
$crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
|
$crons[$timestamp][$hook][$key] = array( 'schedule' => false, 'args' => $args );
|
||||||
ksort( $crons );
|
uksort( $crons, "strnatcasecmp" );
|
||||||
_set_cron_array( $crons );
|
_set_cron_array( $crons );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ function wp_schedule_event( $timestamp, $recurrence, $hook ) {
|
|||||||
if ( !isset( $schedules[$recurrence] ) )
|
if ( !isset( $schedules[$recurrence] ) )
|
||||||
return false;
|
return false;
|
||||||
$crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
|
$crons[$timestamp][$hook][$key] = array( 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
|
||||||
ksort( $crons );
|
uksort( $crons, "strnatcasecmp" );
|
||||||
_set_cron_array( $crons );
|
_set_cron_array( $crons );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ function merge_filters($tag) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($wp_filter[$tag]) )
|
if ( isset($wp_filter[$tag]) )
|
||||||
ksort( $wp_filter[$tag] );
|
uksort( $wp_filter[$tag], "strnatcasecmp" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user