From 024c8003c9c21e94aa8b12fbea6ed3e72cdc841c Mon Sep 17 00:00:00 2001 From: Rachel Baker Date: Tue, 26 Apr 2016 20:34:05 +0000 Subject: [PATCH] =?UTF-8?q?Users:=20Remove=20the=20=E2=80=9CName=E2=80=9D?= =?UTF-8?q?=20column=20of=20the=20Users=20table=20from=20appearing=20sorta?= =?UTF-8?q?ble.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37314 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-users-list-table.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-users-list-table.php b/src/wp-admin/includes/class-wp-users-list-table.php index 9e26867df9..ba619a44c2 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -336,7 +336,6 @@ class WP_Users_List_Table extends WP_List_Table { protected function get_sortable_columns() { $c = array( 'username' => 'login', - 'name' => 'name', 'email' => 'email', );