Make get_tax_sql() a standalone function. See #15032

git-svn-id: https://develop.svn.wordpress.org/trunk@16267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-09 23:30:35 +00:00
parent c0be4fafcf
commit 83738d47f4
3 changed files with 56 additions and 56 deletions

View File

@@ -1899,7 +1899,7 @@ class WP_Query extends WP_Object_Query {
$post_status_join = true;
}
$where .= $this->get_tax_sql( $q['tax_query'], "$wpdb->posts.ID" );
$where .= get_tax_sql( $q['tax_query'], "$wpdb->posts.ID" );
// Back-compat
$cat_query = wp_list_filter( $q['tax_query'], array( 'taxonomy' => 'category' ) );