Skip to content

Commit

Permalink
Update class-better-search.php
Browse files Browse the repository at this point in the history
Fixes #107
  • Loading branch information
ajaydsouza authored Apr 9, 2024
1 parent cf90342 commit e6f85fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/class-better-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,8 @@ public function posts_pre_query( $posts, $query ) {
'posts_per_page' => $query->get( 'posts_per_page' ),
)
);
$posts = array_map( 'get_post', $posts );

Check failure on line 883 in includes/class-better-search.php

View workflow job for this annotation

GitHub Actions / PHPCS check

Whitespace found at end of line
// Set the score for each of the posts.
if ( $posts ) {
foreach ( $posts as $post ) {
Expand Down

0 comments on commit e6f85fe

Please sign in to comment.