Changeset 6190

Show
Ignore:
Timestamp:
10/05/07 16:28:42 (1 year ago)
Author:
ryan
Message:

Add some spacing. fixes #5137 for 2.3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.3/wp-includes/query.php

    r6187 r6190  
    10581058            $q[$item] = array_unique($q[$item]); 
    10591059            $tsql = "SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->term_relationships tr ON (p.ID = tr.object_id) LEFT JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) LEFT JOIN $wpdb->terms t ON (tt.term_id = t.term_id)"; 
    1060             $tsql .= "WHERE tt.taxonomy = '$taxonomy' AND t.$taxonomy_field IN ('" . implode("', '", $q[$item]) . "')"; 
    1061             $tsql .= "GROUP BY p.ID HAVING count(p.ID) = " . count($q[$item]); 
     1060            $tsql .= " WHERE tt.taxonomy = '$taxonomy' AND t.$taxonomy_field IN ('" . implode("', '", $q[$item]) . "')"; 
     1061            $tsql .= " GROUP BY p.ID HAVING count(p.ID) = " . count($q[$item]); 
    10621062 
    10631063            $post_ids = $wpdb->get_col($tsql);