Skip to content

Commit

Permalink
fixed conditions for default and rand sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed May 16, 2024
1 parent 5583366 commit 63b3ed4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/class-get-portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 63b3ed4

Please sign in to comment.