WordPress.org

Make WordPress Core

Changeset 7668


Ignore:
Timestamp:
04/14/08 17:57:30 (6 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        } 
Note: See TracChangeset for help on using the changeset viewer.