|
@@ 1461-1468 (lines=8) @@
|
| 1458 |
|
|
| 1459 |
|
$slug_count = count( $existing_term_slugs ); |
| 1460 |
|
|
| 1461 |
|
if ( $slug_count > 1 ) { |
| 1462 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1463 |
|
$tax_query_var, |
| 1464 |
|
rawurlencode( implode( '+', array_diff( $existing_term_slugs, array( $item['key'] ) ) ) ) |
| 1465 |
|
); |
| 1466 |
|
} else { |
| 1467 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( $tax_query_var ); |
| 1468 |
|
} |
| 1469 |
|
} |
| 1470 |
|
|
| 1471 |
|
break; |
|
@@ 1499-1506 (lines=8) @@
|
| 1496 |
|
$post_type_count = count( $post_types ); |
| 1497 |
|
|
| 1498 |
|
// 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 |
| 1499 |
|
if ( $post_type_count > 1 ) { |
| 1500 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1501 |
|
'post_type', |
| 1502 |
|
rawurlencode( implode( ',', array_diff( $post_types, array( $item['key'] ) ) ) ) |
| 1503 |
|
); |
| 1504 |
|
} else { |
| 1505 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( 'post_type' ); |
| 1506 |
|
} |
| 1507 |
|
} |
| 1508 |
|
|
| 1509 |
|
break; |