| @@ -13,8 +13,9 @@ | ||
| 13 | 13 | <div class="propertyhive-pagination"> |
| 14 | 14 | <?php |
| 15 | 15 | if ( $max_num_pages > 1 ) |
| 16 | 16 | { |
| 17 | + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- WordPress builds and escapes pagination links; preserve the PHP pagination customization filter. | |
| 17 | 18 | echo paginate_links( apply_filters( 'propertyhive_pagination_args', array( |
| 18 | 19 | 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), |
| 19 | 20 | 'format' => '', |
| 20 | 21 | 'current' => max( 1, get_query_var( 'paged' ) ), |
| @@ -30,5 +31,5 @@ | ||
| 30 | 31 | { |
| 31 | 32 | echo ' '; |
| 32 | 33 | } |
| 33 | 34 | ?> |
| 34 | -</div> | |
| 35 | +</div> | |