mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
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:
parent
1795ef877c
commit
06fc36b142
@ -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, ',') . ')';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user