|
@@ 1482-1489 (lines=8) @@
|
| 1479 |
|
|
| 1480 |
|
$slug_count = count( $existing_term_slugs ); |
| 1481 |
|
|
| 1482 |
|
if ( $slug_count > 1 ) { |
| 1483 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1484 |
|
$tax_query_var, |
| 1485 |
|
rawurlencode( implode( '+', array_diff( $existing_term_slugs, array( $item['key'] ) ) ) ) |
| 1486 |
|
); |
| 1487 |
|
} else { |
| 1488 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( $tax_query_var ); |
| 1489 |
|
} |
| 1490 |
|
} |
| 1491 |
|
|
| 1492 |
|
break; |
|
@@ 1520-1527 (lines=8) @@
|
| 1517 |
|
$post_type_count = count( $post_types ); |
| 1518 |
|
|
| 1519 |
|
// 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 |
| 1520 |
|
if ( $post_type_count > 1 ) { |
| 1521 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1522 |
|
'post_type', |
| 1523 |
|
rawurlencode( implode( ',', array_diff( $post_types, array( $item['key'] ) ) ) ) |
| 1524 |
|
); |
| 1525 |
|
} else { |
| 1526 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( 'post_type' ); |
| 1527 |
|
} |
| 1528 |
|
} |
| 1529 |
|
|
| 1530 |
|
break; |