get_objects_in_term()

git-svn-id: https://develop.svn.wordpress.org/trunk@5585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-05-29 04:25:09 +00:00
parent e0bfab53bf
commit ac1db497fc
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -859,7 +859,7 @@ class WP_Query {
if ( strlen($in_cats) > 0 )
$in_cats = " AND $wpdb->term_taxonomy.term_id IN ({$q['cat']}) ";
if ( strlen($out_cats) > 0 ) {
// TODO
// TODO use get_objects_in_term
$ids = $wpdb->get_col("SELECT post_id FROM $wpdb->post2cat WHERE $wpdb->post2cat.category_id IN ($out_cats)");
if ( is_array($ids) && count($ids > 0) ) {
foreach ( $ids as $id )