Make WordPress Core


Ignore:
Timestamp:
04/13/2011 05:02:08 PM (13 years ago)
Author:
ryan
Message:

Use proper prefix in query. Fixes user queries ordered by post count. Props ziofix, ericmann. fixes #17123 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r17435 r17634  
    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
Note: See TracChangeset for help on using the changeset viewer.