Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions includes/classes/Feature/InstantResults/InstantResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ public function requirements_status() {
* @return void
*/
public function setup() {
// Activate the post indexable so query integration hooks are registered.
// Without this, get_search_template() falls back to MySQL when the
// Post Search feature is disabled, resulting in an empty template.
Indexables::factory()->activate( 'post' );

add_filter( 'ep_after_update_feature', [ $this, 'after_update_feature' ], 10, 3 );
add_filter( 'ep_formatted_args', [ $this, 'maybe_apply_aggs_args' ], 10, 3 );
add_filter( 'ep_post_mapping', [ $this, 'add_mapping_properties' ] );
Expand Down
Loading