diff --git a/includes/class-better-search.php b/includes/class-better-search.php index 44bd9dd..6e27368 100644 --- a/includes/class-better-search.php +++ b/includes/class-better-search.php @@ -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 ); + // Set the score for each of the posts. if ( $posts ) { foreach ( $posts as $post ) {