Plugins list table: Use case-insensitive sorting.

props GaryJ.
fixes #32735.
Built from https://develop.svn.wordpress.org/trunk@33076


git-svn-id: http://core.svn.wordpress.org/trunk@33047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-07-03 21:53:25 +00:00
parent cf22cd7d72
commit b2299463b6
2 changed files with 6 additions and 5 deletions

View File

@ -257,10 +257,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
if ( $a == $b )
return 0;
if ( 'DESC' == $order )
return ( $a < $b ) ? 1 : -1;
else
return ( $a < $b ) ? -1 : 1;
if ( 'DESC' == $order ) {
return strcasecmp( $b, $a );
} else {
return strcasecmp( $a, $b );
}
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-beta1-33075';
$wp_version = '4.3-beta1-33076';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.