public function action_loop_end($query)
{
if (!is_multisite()) {
return;
}
array_pop($this->query_stack);
if (!ep_elasticpress_enabled($query) || apply_filters('ep_skip_query_integration', false, $query)) {
return;
}
if (!empty($GLOBALS['switched'])) {
restore_current_blog();
}
}