Fix category exclusion when getting adjacent posts. Props filosofo. fixes #6551 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@7667 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-14 17:56:58 +00:00
parent 1795ef877c
commit 06fc36b142
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ function get_adjacent_post($in_same_cat = false, $excluded_categories = '', $pre
}
if ( !empty($excluded_categories) ) {
$posts_in_ex_cats_sql = " AND tt.term_id NOT IN (" . implode($excluded_categories, ',') . ')';
$posts_in_ex_cats_sql = " AND tt.taxonomy = 'category' AND tt.term_id NOT IN (" . implode($excluded_categories, ',') . ')';
}
}
}