From 9717e451cf3e909abf6098358c26219b82da9b0d Mon Sep 17 00:00:00 2001 From: koenemann Date: Thu, 2 Feb 2017 12:27:45 +0100 Subject: [PATCH] again... --- global-templates/pagination.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/global-templates/pagination.php b/global-templates/pagination.php index a0eb343..6fb8f65 100644 --- a/global-templates/pagination.php +++ b/global-templates/pagination.php @@ -46,8 +46,9 @@ function understrap_pagination() { if ( ! in_array( 1, $links ) ) { $class = 1 == $paged ? ' class="active page-item"' : ' class="page-item"'; - printf( '
  • ' . "\n", - $class, // WPCS: XSS OK. + printf( // WPCS: XSS OK. + '
  • ' . "\n", + $class, esc_url( get_pagenum_link( 1 ) ), '1' ); /** Previous Post Link */ @@ -66,8 +67,9 @@ function understrap_pagination() { sort( $links ); foreach ( (array) $links as $link ) { $class = $paged == $link ? ' class="active page-item"' : ' class="page-item"'; - printf( '
  • %s
  • ' . "\n", - $class, // WPCS: XSS OK. + printf( // WPCS: XSS OK. + '
  • %s
  • ' . "\n", + $class, esc_url( get_pagenum_link( $link ) ), $link ); }