From c18c873b99b38efe9c9eb6527ad5cab14e856a3c Mon Sep 17 00:00:00 2001 From: Gerhard Date: Fri, 10 Apr 2015 15:34:09 +0200 Subject: [PATCH] Ensure $wp->request has a trailing slash to avoid pagination issues. --- includes/widgets/class-wc-widget-price-filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/widgets/class-wc-widget-price-filter.php b/includes/widgets/class-wc-widget-price-filter.php index 442ae4e5b67..c5c14110d16 100644 --- a/includes/widgets/class-wc-widget-price-filter.php +++ b/includes/widgets/class-wc-widget-price-filter.php @@ -158,7 +158,7 @@ class WC_Widget_Price_Filter extends WC_Widget { if ( '' == get_option( 'permalink_structure' ) ) { $form_action = remove_query_arg( array( 'page', 'paged' ), add_query_arg( $wp->query_string, '', home_url( $wp->request ) ) ); } else { - $form_action = preg_replace( '%\/page/[0-9]+%', '', home_url( $wp->request ) ); + $form_action = preg_replace( '%\/page/[0-9]+%', '', home_url( trailingslashit( $wp->request ) ) ); } echo '