Index: wp-includes/link-template.php =================================================================== --- wp-includes/link-template.php (revision 123226) +++ wp-includes/link-template.php (working copy) @@ -1591,7 +1591,7 @@ * @param bool $in_same_term Whether post should be in a same taxonomy term. * @param array $excluded_terms Array of excluded term IDs. */ - $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms ); + $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy ); /** * Filter the WHERE clause in the SQL for an adjacent post query. @@ -1605,7 +1605,7 @@ * @param bool $in_same_term Whether post should be in a same taxonomy term. * @param array $excluded_terms Array of excluded term IDs. */ - $where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare( "WHERE p.post_date $op %s AND p.post_type = %s $where", $current_post_date, $post->po st_type ), $in_same_term, $excluded_terms ); + $where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare( "WHERE p.post_date $op %s AND p.post_type = %s $where", $current_post_date, $post->po st_type ), $in_same_term, $excluded_terms, $taxonomy ); /** * Filter the ORDER BY clause in the SQL for an adjacent post query.