Changeset 7668

Show
Ignore:
Timestamp:
04/14/08 17:57:30 (3 months ago)
Author:
ryan
Message:

Fix category exclusion when getting adjacent posts. Props filosofo. fixes #6551 for 2.5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.5/wp-includes/link-template.php

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