WordPress.org

Make WordPress Core

Changeset 11501


Ignore:
Timestamp:
06/01/2009 05:12:12 PM (9 years ago)
Author:
ryan
Message:

Use proper field for category intersection queries. fixes #9985

File:
1 edited

Legend:

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

    r11464 r11501  
    19161916            }
    19171917
    1918             $taxonomy_field = $item == ('tag_slug__and' || 'tag_slug__in') ? 'slug' : 'term_id';
     1918            if ( in_array( $item, array('tag_slug__and', 'tag_slug__in' ) ) )
     1919                $taxonomy_field = 'slug';
     1920            else
     1921                $taxonomy_field = 'term_id';
    19191922
    19201923            $q[$item] = array_unique($q[$item]);
Note: See TracChangeset for help on using the changeset viewer.