| 1 | Index: wp-includes/link-template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/link-template.php (revision 123226) |
|---|
| 4 | +++ wp-includes/link-template.php (working copy) |
|---|
| 5 | @@ -1591,7 +1591,7 @@ |
|---|
| 6 | * @param bool $in_same_term Whether post should be in a same taxonomy term. |
|---|
| 7 | * @param array $excluded_terms Array of excluded term IDs. |
|---|
| 8 | */ |
|---|
| 9 | - $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms ); |
|---|
| 10 | + $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy ); |
|---|
| 11 | |
|---|
| 12 | /** |
|---|
| 13 | * Filter the WHERE clause in the SQL for an adjacent post query. |
|---|
| 14 | @@ -1605,7 +1605,7 @@ |
|---|
| 15 | * @param bool $in_same_term Whether post should be in a same taxonomy term. |
|---|
| 16 | * @param array $excluded_terms Array of excluded term IDs. |
|---|
| 17 | */ |
|---|
| 18 | - $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 ); |
|---|
| 19 | + $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 ); |
|---|
| 20 | |
|---|
| 21 | /** |
|---|
| 22 | * Filter the ORDER BY clause in the SQL for an adjacent post query. |
|---|