orderby - skip adding hidden input of submit on a GET so JS can submit properly fixes #5221

This commit is contained in:
splashingpixels 2014-03-27 09:37:56 -07:00
parent ebb6af921c
commit bbde465924
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) ) {