Skip to content

Commit

Permalink
Merge pull request #4060 from 10up/fix/4059
Browse files Browse the repository at this point in the history
Fix: Attempt to read property base on null
  • Loading branch information
felipeelia authored Jan 14, 2025
2 parents f4de362 + 82a650e commit d595a6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public function maybe_change_sort( $default_sort ) {
}

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

Expand Down

0 comments on commit d595a6a

Please sign in to comment.