WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22213


Ignore:
Timestamp:
10/17/12 13:05:42 (2 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22213 – Description

    initial v1  
    77        return 'DISTINCT post_author as pa, '; 
    88} ); 
     9}}} 
    910 
    1011When the split query runs it uses `$wpdb->get_col()` which will return the DISTINCT field values we asked for instead of the ID fields. In the example above we get an array of post author IDs instead of post IDs.