From 7d2a7755a37d5f32e61b6da3299eeb2d636284ae Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 14 Apr 2008 17:56:58 +0000 Subject: [PATCH] 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 --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index f34d9b5bb..74da3e747 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -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, ',') . ')'; } } }