WordPress.org

Make WordPress Core

Ticket #9571: 9571.diff

File 9571.diff, 554 bytes (added by rmccue, 9 years ago)
  • link-template.php

     
    875875
    876876        $join = '';
    877877        $posts_in_ex_cats_sql = '';
     878        $excluded_categories = apply_filters("get_{$adjacent}_post_excluded", $excluded_categories);
    878879        if ( $in_same_cat || !empty($excluded_categories) ) {
    879880                $join = " INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
    880881