@@ 326-328 (lines=3) @@ | ||
323 | } |
|
324 | ||
325 | // Min/Max. |
|
326 | if ( isset( $_GET['min_price'] ) ) { |
|
327 | $link = add_query_arg( 'min_price', wc_clean( wp_unslash( $_GET['min_price'] ) ), $link ); |
|
328 | } |
|
329 | ||
330 | if ( isset( $_GET['max_price'] ) ) { |
|
331 | $link = add_query_arg( 'max_price', wc_clean( wp_unslash( $_GET['max_price'] ) ), $link ); |
|
@@ 330-332 (lines=3) @@ | ||
327 | $link = add_query_arg( 'min_price', wc_clean( wp_unslash( $_GET['min_price'] ) ), $link ); |
|
328 | } |
|
329 | ||
330 | if ( isset( $_GET['max_price'] ) ) { |
|
331 | $link = add_query_arg( 'max_price', wc_clean( wp_unslash( $_GET['max_price'] ) ), $link ); |
|
332 | } |
|
333 | ||
334 | // Order by. |
|
335 | if ( isset( $_GET['orderby'] ) ) { |
|
@@ 335-337 (lines=3) @@ | ||
332 | } |
|
333 | ||
334 | // Order by. |
|
335 | if ( isset( $_GET['orderby'] ) ) { |
|
336 | $link = add_query_arg( 'orderby', wc_clean( wp_unslash( $_GET['orderby'] ) ), $link ); |
|
337 | } |
|
338 | ||
339 | /** |
|
340 | * Search Arg. |
|
@@ 348-350 (lines=3) @@ | ||
345 | } |
|
346 | ||
347 | // Post Type Arg. |
|
348 | if ( isset( $_GET['post_type'] ) ) { |
|
349 | $link = add_query_arg( 'post_type', wc_clean( wp_unslash( $_GET['post_type'] ) ), $link ); |
|
350 | } |
|
351 | ||
352 | // Min Rating Arg. |
|
353 | if ( isset( $_GET['rating_filter'] ) ) { |
|
@@ 353-355 (lines=3) @@ | ||
350 | } |
|
351 | ||
352 | // Min Rating Arg. |
|
353 | if ( isset( $_GET['rating_filter'] ) ) { |
|
354 | $link = add_query_arg( 'rating_filter', wc_clean( wp_unslash( $_GET['rating_filter'] ) ), $link ); |
|
355 | } |
|
356 | ||
357 | // All current filters. |
|
358 | if ( $_chosen_attributes = WC_Query::get_layered_nav_chosen_attributes() ) { // phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.Found, WordPress.CodeAnalysis.AssignmentInCondition.Found |