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

git-svn-id: http://svn.automattic.com/wordpress/trunk@7667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-14 17:56:58 +00:00
parent 1a41abe289
commit 7d2a7755a3

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, ',') . ')';
}
}
}