diff --git a/adapters/jetpack-search.php b/adapters/jetpack-search.php index bceb762..d94a21b 100644 --- a/adapters/jetpack-search.php +++ b/adapters/jetpack-search.php @@ -23,7 +23,7 @@ protected function query_es( $es_args ) { $jetpack_search = null; if ( class_exists( 'Automattic\Jetpack\Search\Classic_Search' ) ) { - $jetpack_search = Automattic\Jetpack\Search\Classic_Search::initialize( get_current_blog_id() ); + $jetpack_search = Automattic\Jetpack\Search\Classic_Search::initialize( \Automattic\Jetpack\Search\Helper::get_wpcom_site_id() ); } else if ( class_exists( 'Jetpack_Search' ) ) { $jetpack_search = Jetpack_Search::instance();