Skip to content

Commit

Permalink
fix(PostGrid): Argument #3 must be of type string, bool given
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Aug 12, 2024
1 parent 7a04275 commit 42b9691
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Settings/PostGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public static function filterBar($settings): string
if ('main_query' === $settings->data_source) {
$postTypes = [get_post_type()];
}
$postTypes = array_filter($postTypes);
if (empty($postTypes)) {
$postTypes = ['post'];
}
Expand Down

0 comments on commit 42b9691

Please sign in to comment.