Skip to content

Commit

Permalink
page_count hotfix and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi-Artturi Mäkelä committed Sep 30, 2021
1 parent bc510f8 commit fca04d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.


## [Released]

## [1.34.3] - 2021-09-30
- Pagination parameter page_count didn't always return the right value. This update will fix it.

## [1.34.2] - 2021-08-09

### Added
Expand Down
2 changes: 1 addition & 1 deletion helpers/pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function output() {
$data->page_var = $this->page_var;
$data->page_link = apply_filters( 'dustpress/pagination/page_link', $page_link );
$data->page = $cur_page;
$data->page_count = \count( $pages );
$data->page_count = $page_count;

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

0 comments on commit fca04d3

Please sign in to comment.