mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
cf22cd7d72
commit
b2299463b6
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user