Disable sorting by post count for now. See #15861
git-svn-id: https://develop.svn.wordpress.org/trunk@17024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
373ed6ae4e
commit
e58993fe2e
@ -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