Ticket #17123: 17123.diff
File 17123.diff, 469 bytes (added by , 13 years ago) |
---|
-
wp-includes/user.php
438 438 $where = get_posts_by_author_sql('post'); 439 439 $this->query_from .= " LEFT OUTER JOIN ( 440 440 SELECT post_author, COUNT(*) as post_count 441 FROM wp_posts441 FROM $wpdb->posts 442 442 $where 443 443 GROUP BY post_author 444 444 ) p ON ({$wpdb->users}.ID = p.post_author)