Skip to content

Commit

Permalink
Fix error notice
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Aug 19, 2020
1 parent 45fa5ca commit 4f2b4b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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.4 - 2020-08-19

- Fixed error notice.

## 2.5.3 - 2020-08-18

- Added a new `column_order` argument for the `admin_columns` option.
Expand Down
2 changes: 1 addition & 1 deletion lib/Post_Type_Columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function columns( $columns ) {
public function columns_sortable( $columns ) {
foreach ( $this->columns as $slug => $column ) {
// Remove column when it’s not sortable.
if ( ! $column['sortable'] ) {
if ( isset( $column['sortable'] ) && ! $column['sortable'] ) {
unset( $columns[ $slug ] );
continue;
} elseif ( ! isset( $columns[ $slug ] ) ) {
Expand Down

0 comments on commit 4f2b4b6

Please sign in to comment.