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 ); }