Skip to content

Commit

Permalink
Adjust feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jan 14, 2025
1 parent 36ecb55 commit 82a650e
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,7 @@ public function maybe_change_sort( $default_sort ) {
}

$screen = get_current_screen();
if ( empty( $screen ) ) {
return $default_sort;
}

if ( 'edit' !== $screen->base ) {
if ( empty( $screen ) || 'edit' !== $screen->base ) {
return $default_sort;
}

Expand Down

0 comments on commit 82a650e

Please sign in to comment.