Merge pull request #2737 from Joris-van-der-Wel/issue2736

Fix for issue 2736.
This commit is contained in:
Mike Jolley 2013-03-18 03:26:17 -07:00
commit bb35c49c8f
1 changed files with 9 additions and 1 deletions

View File

@ -38,7 +38,15 @@ if ( 1 == $wp_query->found_posts || ! woocommerce_products_will_display() )
foreach ( $_GET as $key => $val ) {
if ( 'orderby' == $key )
continue;
echo '<input type="hidden" name="' . esc_attr( $key ) . '" value="' . esc_attr( $val ) . '" />';
if (is_array($val)) {
foreach($val as $innerVal) {
echo '<input type="hidden" name="' . esc_attr( $key ) . '[]" value="' . esc_attr( $innerVal ) . '" />';
}
} else {
echo '<input type="hidden" name="' . esc_attr( $key ) . '" value="' . esc_attr( $val ) . '" />';
}
}
?>
</form>