From 63b3ed4fe0cddf06d7e5bf9aef619fffe3d38788 Mon Sep 17 00:00:00 2001 From: Fellan-91 Date: Thu, 16 May 2024 13:06:36 +0300 Subject: [PATCH] fixed conditions for default and rand sort --- classes/class-get-portfolio.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/class-get-portfolio.php b/classes/class-get-portfolio.php index fe22390c..24eb883c 100644 --- a/classes/class-get-portfolio.php +++ b/classes/class-get-portfolio.php @@ -1454,8 +1454,10 @@ public static function get_query_params( $options, $for_filter = false, $layout_ if ( 'desc' === $custom_order_direction && - 'rand' === $custom_order && - 'default' === $custom_order + ( + 'rand' === $custom_order || + 'default' === $custom_order + ) ) { $images = array_reverse( $images ); }