Users: Remove the “Name” column of the Users table from appearing sortable.

The “Name” column of the Users WP List Table is not sortable because this column displays a concatenation of two optional values, `first_name` and `last_name`. Even if WP_User_Query supported ordering queries in this manner, the resulting sequence would be chaotic.

Fixes #28064.

Props jesin, and rachelbaker.
Built from https://develop.svn.wordpress.org/trunk@37314


git-svn-id: http://core.svn.wordpress.org/trunk@37280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Rachel Baker 2016-04-26 20:35:29 +00:00
parent ddbde15454
commit 56c18bb5af
2 changed files with 1 additions and 2 deletions

View File

@ -336,7 +336,6 @@ class WP_Users_List_Table extends WP_List_Table {
protected function get_sortable_columns() { protected function get_sortable_columns() {
$c = array( $c = array(
'username' => 'login', 'username' => 'login',
'name' => 'name',
'email' => 'email', 'email' => 'email',
); );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.6-alpha-37313'; $wp_version = '4.6-alpha-37314';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.