mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
case insensitive sorting. props Nazgul. fixes #3108
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3302eb70fa
commit
052b0b8c37
@ -55,7 +55,7 @@ foreach ($menu as $menu_page) {
|
||||
}
|
||||
|
||||
do_action('admin_menu', '');
|
||||
ksort($menu); // make it all pretty
|
||||
uksort($menu, "strnatcasecmp"); // make it all pretty
|
||||
|
||||
if (! user_can_access_admin_page()) {
|
||||
die( __('You do not have sufficient permissions to access this page.') );
|
||||
|
@ -206,7 +206,7 @@ default:
|
||||
<table cellpadding="3" cellspacing="3" width="100%">
|
||||
<?php
|
||||
foreach($roleclasses as $role => $roleclass) {
|
||||
ksort($roleclass);
|
||||
uksort($roleclass, "strnatcasecmp");
|
||||
?>
|
||||
|
||||
<tr>
|
||||
|
@ -1193,7 +1193,7 @@ function merge_filters($tag) {
|
||||
}
|
||||
|
||||
if ( isset($wp_filter[$tag]) )
|
||||
ksort( $wp_filter[$tag] );
|
||||
uksort( $wp_filter[$tag], "strnatcasecmp" );
|
||||
}
|
||||
|
||||
function apply_filters($tag, $string) {
|
||||
|
Loading…
Reference in New Issue
Block a user