WordPress.org

Make WordPress Core

Ticket #6551: fix_get_adjacent_post.diff

File fix_get_adjacent_post.diff, 518 bytes (added by filosofo, 10 years ago)
  • wp-includes/link-template.php

     
    554554                        }
    555555
    556556                        if ( !empty($excluded_categories) ) {
    557                                 $posts_in_ex_cats_sql = " AND tt.term_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, ',') . ')';
    558558                        }
    559559                }
    560560        }