Skip to content

Commit

Permalink
Fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Jul 8, 2020
1 parent f08064a commit 1b7307f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Types

## 2.5.1 - 2020-07-08

- Fixed a PHP notice.

## 2.5.0 - 2020-07-08

- Fixed `sortable` parameter for the `admin_columns` option. Sorting didn’t work properly before. It should work now.
Expand Down
1 change: 1 addition & 0 deletions lib/Post_Type_Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function sort_by_meta( \WP_Query $query ) {
if ( ! $query->is_main_query()
|| $typenow !== $this->post_type
|| empty( $orderby )
|| ! isset( $this->columns[ $orderby ] )
|| 'meta' !== $this->columns[ $orderby ]['type']
) {
return;
Expand Down

0 comments on commit 1b7307f

Please sign in to comment.