WordPress.org

Make WordPress Core

Ticket #17123: 17123.diff

File 17123.diff, 469 bytes (added by ericmann, 9 years ago)

Adding change as a patch file

  • wp-includes/user.php

     
    438438                        $where = get_posts_by_author_sql('post');
    439439                        $this->query_from .= " LEFT OUTER JOIN (
    440440                                SELECT post_author, COUNT(*) as post_count
    441                                 FROM wp_posts
     441                                FROM $wpdb->posts
    442442                                $where
    443443                                GROUP BY post_author
    444444                        ) p ON ({$wpdb->users}.ID = p.post_author)