Skip to content

Commit

Permalink
Fix: Attempt to read property base on null
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jan 14, 2025
1 parent f4de362 commit 36ecb55
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,10 @@ public function maybe_change_sort( $default_sort ) {
}

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

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

0 comments on commit 36ecb55

Please sign in to comment.