| 1 | Index: link-template.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- link-template.php (revision 123256) |
|---|
| 4 | +++ link-template.php (working copy) |
|---|
| 5 | @@ -1590,8 +1590,9 @@ |
|---|
| 6 | * @param string $join The JOIN clause in the SQL. |
|---|
| 7 | * @param bool $in_same_term Whether post should be in a same taxonomy term. |
|---|
| 8 | * @param array $excluded_terms Array of excluded term IDs. |
|---|
| 9 | + * @param string $taxonomy Taxonomy, only applicable if $in_same_term is true. |
|---|
| 10 | */ |
|---|
| 11 | - $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms ); |
|---|
| 12 | + $join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_term, $excluded_terms, $taxonomy ); |
|---|
| 13 | |
|---|
| 14 | /** |
|---|
| 15 | * Filter the WHERE clause in the SQL for an adjacent post query. |
|---|
| 16 | @@ -1604,8 +1605,9 @@ |
|---|
| 17 | * @param string $where The `WHERE` clause in the SQL. |
|---|
| 18 | * @param bool $in_same_term Whether post should be in a same taxonomy term. |
|---|
| 19 | * @param array $excluded_terms Array of excluded term IDs. |
|---|
| 20 | + * @param string $taxonomy Taxonomy, only applicable if $in_same_term is true. |
|---|
| 21 | */ |
|---|
| 22 | - $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->post_type ), $in_same_term, $excluded_terms ); |
|---|
| 23 | + $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->post_type ), $in_same_term, $excluded_terms, $taxonomy ); |
|---|
| 24 | |
|---|
| 25 | /** |
|---|
| 26 | * Filter the ORDER BY clause in the SQL for an adjacent post query. |
|---|