WordPress.org

Make WordPress Core

Changeset 17635


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/wp-includes/user.php

    r17436 r17635  
    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.