Skip to content

Commit 45ef62f

Browse files
committed
Fix a bug with orderby query parameters that are arrays
1 parent 4f2b4b6 commit 45ef62f

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Types
22

3+
## 2.5.5 - 2021-11-30
4+
5+
- Fixed a bug with orderby query parameters that are arrays.
6+
37
## 2.5.4 - 2020-08-19
48

59
- Fixed error notice.

lib/Post_Type_Columns.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public function sort_by_meta( \WP_Query $query ) {
162162
if ( ! $query->is_main_query()
163163
|| $typenow !== $this->post_type
164164
|| empty( $orderby )
165+
|| ! is_string( $orderby )
165166
|| ! isset( $this->columns[ $orderby ] )
166167
|| 'meta' !== $this->columns[ $orderby ]['type']
167168
) {

0 commit comments

Comments
 (0)