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  
    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        }