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:
scribu 2010-12-17 10:25:27 +00:00
parent 8a261e59e2
commit c1e19baef8
2 changed files with 1 additions and 1 deletions

View File

@ -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 )

View File

@ -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