orderby - skip adding hidden input of submit on a GET so JS can submit properly fixes #5221
This commit is contained in:
parent
ebb6af921c
commit
bbde465924
|
@ -36,7 +36,7 @@ if ( 1 == $wp_query->found_posts || ! woocommerce_products_will_display() )
|
|||
<?php
|
||||
// Keep query string vars intact
|
||||
foreach ( $_GET as $key => $val ) {
|
||||
if ( 'orderby' == $key )
|
||||
if ( 'orderby' === $key || 'submit' === $key )
|
||||
continue;
|
||||
|
||||
if ( is_array( $val ) ) {
|
||||
|
|
Loading…
Reference in New Issue