|
@@ 1447-1454 (lines=8) @@
|
| 1444 |
|
|
| 1445 |
|
$slug_count = count( $existing_term_slugs ); |
| 1446 |
|
|
| 1447 |
|
if ( $slug_count > 1 ) { |
| 1448 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1449 |
|
$tax_query_var, |
| 1450 |
|
rawurlencode( implode( '+', array_diff( $existing_term_slugs, array( $item['key'] ) ) ) ) |
| 1451 |
|
); |
| 1452 |
|
} else { |
| 1453 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( $tax_query_var ); |
| 1454 |
|
} |
| 1455 |
|
} |
| 1456 |
|
|
| 1457 |
|
break; |
|
@@ 1485-1492 (lines=8) @@
|
| 1482 |
|
$post_type_count = count( $post_types ); |
| 1483 |
|
|
| 1484 |
|
// 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 |
| 1485 |
|
if ( $post_type_count > 1 ) { |
| 1486 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1487 |
|
'post_type', |
| 1488 |
|
rawurlencode( implode( ',', array_diff( $post_types, array( $item['key'] ) ) ) ) |
| 1489 |
|
); |
| 1490 |
|
} else { |
| 1491 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( 'post_type' ); |
| 1492 |
|
} |
| 1493 |
|
} |
| 1494 |
|
|
| 1495 |
|
break; |