Merge pull request #7031 from splashingpixels/pagination

fixes the encoding issue with pagination on default permalinks setting c...
This commit is contained in:
Claudio Sanches 2015-01-02 09:20:02 -02:00
commit a8f9392c43
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if ( $wp_query->max_num_pages <= 1 ) {
<nav class="woocommerce-pagination">
<?php
echo paginate_links( apply_filters( 'woocommerce_pagination_args', array(
'base' => esc_url( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ),
'base' => esc_url_raw( str_replace( 999999999, '%#%', remove_query_arg( 'add-to-cart', get_pagenum_link( 999999999, false ) ) ) ),
'format' => '',
'current' => max( 1, get_query_var( 'paged' ) ),
'total' => $wp_query->max_num_pages,