Ticket #6551: fix_get_adjacent_post.diff
| File fix_get_adjacent_post.diff, 0.5 kB (added by filosofo, 1 month ago) |
|---|
-
wp-includes/link-template.php
old new 554 554 } 555 555 556 556 if ( !empty($excluded_categories) ) { 557 $posts_in_ex_cats_sql = " AND tt.t erm_id NOT IN (" . implode($excluded_categories, ',') . ')';557 $posts_in_ex_cats_sql = " AND tt.taxonomy = 'category' AND tt.term_id NOT IN (" . implode($excluded_categories, ',') . ')'; 558 558 } 559 559 } 560 560 }
