WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/06/2010 08:09:41 AM (10 years ago)
Author:
scribu
Message:

Rewrite WP_User_Query to use JOIN instead of subquery. See #14572

File:
1 edited

Legend:

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

    r15574 r15579  
    42454245 * @param array $queries An array of queries
    42464246 * @param string $meta_id_column The column that holds the object id
    4247  * @param string $table Which meta table to look in
    42484247 * @return string
    42494248 */
    4250 function _wp_meta_sql( $queries, $meta_id_column, $table ) {
     4249function _wp_meta_sql( $queries, $meta_id_column ) {
    42514250    global $wpdb;
    42524251
     
    42794278
    42804279    return "
    4281         SELECT $meta_id_column
    4282         FROM $table
    4283         WHERE CASE meta_key
     4280        AND CASE meta_key
    42844281        " . implode( "\n", $clauses ) . "
    42854282        END
Note: See TracChangeset for help on using the changeset viewer.