Skip to content

Commit 510611b

Browse files
committed
fix: Fix a bug with sortable columns when a column has no title
1 parent c0eae26 commit 510611b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/Post_Type_Columns.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ public function columns( $columns ) {
121121
$sorted = wp_list_sort( $sorted, 'column_order', 'ASC', true );
122122

123123
foreach ( $sorted as $slug => $column ) {
124+
if ( empty( $column['title'] ) ) {
125+
continue;
126+
}
127+
124128
$return[ $slug ] = $column['title'];
125129
}
126130

0 commit comments

Comments
 (0)