mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 15:46:04 +01:00
Disable sorting by post count for now. See #15861
git-svn-id: http://svn.automattic.com/wordpress/trunk@17024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8a261e59e2
commit
c1e19baef8
@ -169,7 +169,6 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
'username' => 'login',
|
||||
'name' => 'name',
|
||||
'email' => 'email',
|
||||
'posts' => 'post_count',
|
||||
);
|
||||
|
||||
if ( $this->is_site_users )
|
||||
|
@ -431,6 +431,7 @@ class WP_User_Query {
|
||||
} elseif ( 'name' == $qv['orderby'] || 'display_name' == $qv['orderby'] ) {
|
||||
$orderby = 'display_name';
|
||||
} elseif ( 'post_count' == $qv['orderby'] ) {
|
||||
// todo: avoid the JOIN
|
||||
$where = get_posts_by_author_sql('post');
|
||||
$this->query_from .= " LEFT OUTER JOIN (
|
||||
SELECT post_author, COUNT(*) as post_count
|
||||
|
Loading…
Reference in New Issue
Block a user