|
@@ 1471-1478 (lines=8) @@
|
| 1468 |
|
|
| 1469 |
|
$slug_count = count( $existing_term_slugs ); |
| 1470 |
|
|
| 1471 |
|
if ( $slug_count > 1 ) { |
| 1472 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1473 |
|
$tax_query_var, |
| 1474 |
|
rawurlencode( implode( '+', array_diff( $existing_term_slugs, array( $item['key'] ) ) ) ) |
| 1475 |
|
); |
| 1476 |
|
} else { |
| 1477 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( $tax_query_var ); |
| 1478 |
|
} |
| 1479 |
|
} |
| 1480 |
|
|
| 1481 |
|
break; |
|
@@ 1509-1516 (lines=8) @@
|
| 1506 |
|
$post_type_count = count( $post_types ); |
| 1507 |
|
|
| 1508 |
|
// 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 |
| 1509 |
|
if ( $post_type_count > 1 ) { |
| 1510 |
|
$remove_url = Jetpack_Search_Helpers::add_query_arg( |
| 1511 |
|
'post_type', |
| 1512 |
|
rawurlencode( implode( ',', array_diff( $post_types, array( $item['key'] ) ) ) ) |
| 1513 |
|
); |
| 1514 |
|
} else { |
| 1515 |
|
$remove_url = Jetpack_Search_Helpers::remove_query_arg( 'post_type' ); |
| 1516 |
|
} |
| 1517 |
|
} |
| 1518 |
|
|
| 1519 |
|
break; |