|
@@ 1526-1533 (lines=8) @@
|
| 1523 |
|
|
| 1524 |
|
$slug_count = count( $existing_term_slugs ); |
| 1525 |
|
|
| 1526 |
|
if ( $slug_count > 1 ) { |
| 1527 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1528 |
|
$tax_query_var, |
| 1529 |
|
rawurlencode( implode( '+', array_diff( $existing_term_slugs, array( $item['key'] ) ) ) ) |
| 1530 |
|
); |
| 1531 |
|
} else { |
| 1532 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( $tax_query_var ); |
| 1533 |
|
} |
| 1534 |
|
} |
| 1535 |
|
|
| 1536 |
|
break; |
|
@@ 1564-1571 (lines=8) @@
|
| 1561 |
|
$post_type_count = count( $post_types ); |
| 1562 |
|
|
| 1563 |
|
// For the right 'remove filter' url, we need to remove the post type from the array, or remove the param entirely if it's the only one |
| 1564 |
|
if ( $post_type_count > 1 ) { |
| 1565 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1566 |
|
'post_type', |
| 1567 |
|
rawurlencode( implode( ',', array_diff( $post_types, array( $item['key'] ) ) ) ) |
| 1568 |
|
); |
| 1569 |
|
} else { |
| 1570 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( 'post_type' ); |
| 1571 |
|
} |
| 1572 |
|
} |
| 1573 |
|
|
| 1574 |
|
break; |