From c2cafee6ece2e9a7a390cb7035216cf5b9d40002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20V=C3=A4nttinen?= Date: Mon, 4 Sep 2023 10:56:02 +0300 Subject: [PATCH] TMS-972: Pagination fix for exhibition archive --- CHANGELOG.MD | 6 ++++++ models/archive-exhibition.php | 2 +- style.css | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) 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