diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 0af461d..226b2c4 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -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 diff --git a/models/archive-exhibition.php b/models/archive-exhibition.php index 350dbfb..3b9f4a4 100644 --- a/models/archive-exhibition.php +++ b/models/archive-exhibition.php @@ -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 [ diff --git a/style.css b/style.css index b972d2a..5c477d7 100644 --- a/style.css +++ b/style.css @@ -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