Layered nag - remember orderby #4889

This commit is contained in:
Mike Jolley 2014-02-24 15:45:43 +00:00 committed by Coen Jacobs
parent 17d03be635
commit a0ffae78df
1 changed files with 4 additions and 0 deletions

View File

@ -324,6 +324,10 @@ class WC_Widget_Layered_Nav extends WC_Widget {
if ( isset( $_GET['max_price'] ) ) if ( isset( $_GET['max_price'] ) )
$link = add_query_arg( 'max_price', $_GET['max_price'], $link ); $link = add_query_arg( 'max_price', $_GET['max_price'], $link );
// Orderby
if ( isset( $_GET['orderby'] ) )
$link = add_query_arg( 'orderby', $_GET['orderby'], $link );
// Current Filter = this widget // Current Filter = this widget
if ( isset( $_chosen_attributes[ $taxonomy ] ) && is_array( $_chosen_attributes[ $taxonomy ]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[ $taxonomy ]['terms'] ) ) { if ( isset( $_chosen_attributes[ $taxonomy ] ) && is_array( $_chosen_attributes[ $taxonomy ]['terms'] ) && in_array( $term->term_id, $_chosen_attributes[ $taxonomy ]['terms'] ) ) {