Remove check on unexistant $ids var in WP_Query::get_posts. Props Utkarsh. See #12891

git-svn-id: https://develop.svn.wordpress.org/trunk@16116 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-10-31 11:28:49 +00:00
parent 58f4333233
commit 33e3ef1367

View File

@ -1901,7 +1901,6 @@ class WP_Query extends WP_Object_Query {
$where .= $this->get_tax_sql( $q['tax_query'], "$wpdb->posts.ID" );
// Back-compat
if ( !empty( $ids ) ) {
$cat_query = wp_list_filter( $q['tax_query'], array( 'taxonomy' => 'category' ) );
if ( !empty( $cat_query ) ) {
$cat_query = reset( $cat_query );
@ -1913,9 +1912,6 @@ class WP_Query extends WP_Object_Query {
}
}
unset( $ids );
}
if ( !empty($q['meta_key']) ) {
$groupby = "{$wpdb->posts}.ID";
}