Skip to content

Commit

Permalink
TMS-972: Pagination fix for exhibition archive
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed Sep 4, 2023
1 parent 5399706 commit c2cafee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.9.2] - 2023-09-04

### Fixed

- TMS-972: Pagination fix for past exhibitions in exhibition-archive

## [1.9.1] - 2023-04-27

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion models/archive-exhibition.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function results() {
$past_exhibitions = $wp_query->posts;
$this->results->past = $past_exhibitions;

$results = $is_past_archive ? $past_exhibitions : $upcoming_exhibitions;
$results = $is_past_archive ? $unfiltered_past_exhibitions : $upcoming_exhibitions;
$this->set_pagination_data( count( $results ), $per_page );

return [
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Theme Name: TMS Theme Taidemuseo
* Description: Tampere Multisite Taidemuseo Theme
* Version: 1.9.1
* Version: 1.9.2
* Author: Geniem
* Author URI: https://geniem.fi
* Template: tms-theme-base
Expand Down

0 comments on commit c2cafee

Please sign in to comment.