Skip to content

Commit fca04d3

Browse files
author
Timi-Artturi Mäkelä
committed
page_count hotfix and changelog
1 parent bc510f8 commit fca04d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99

1010
## [Released]
11+
12+
## [1.34.3] - 2021-09-30
13+
- Pagination parameter page_count didn't always return the right value. This update will fix it.
14+
1115
## [1.34.2] - 2021-08-09
1216

1317
### Added

helpers/pagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function output() {
185185
$data->page_var = $this->page_var;
186186
$data->page_link = apply_filters( 'dustpress/pagination/page_link', $page_link );
187187
$data->page = $cur_page;
188-
$data->page_count = \count( $pages );
188+
$data->page_count = $page_count;
189189

190190
$data->S = (object) [];
191191
$data->S->prev = $strings['previous'];

0 commit comments

Comments
 (0)