Make WordPress Core

Changeset 8968


Ignore:
Timestamp:
09/24/2008 08:03:42 AM (15 years ago)
Author:
ryan
Message:

Group by not needed for not_in and and taxonomy queries. Props Otto42. fixes #7761

File:
1 edited

Legend:

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

    r8961 r8968  
    17901790        }
    17911791
    1792         if ( !empty($q['category__in']) || !empty($q['category__not_in']) || !empty($q['category__and']) ) {
     1792        if ( !empty($q['category__in']) ) {
    17931793            $groupby = "{$wpdb->posts}.ID";
    17941794        }
     
    18701870        }
    18711871
    1872         if ( !empty($q['tag__in']) || !empty($q['tag__not_in']) || !empty($q['tag__and']) ||
    1873             !empty($q['tag_slug__in']) || !empty($q['tag_slug__and']) ) {
     1872        if ( !empty($q['tag__in']) || !empty($q['tag_slug__in']) ) {
    18741873            $groupby = "{$wpdb->posts}.ID";
    18751874        }
Note: See TracChangeset for help on using the changeset viewer.