Skip to content

Commit

Permalink
Merge pull request #107 from miguelpeixe/patch-1
Browse files Browse the repository at this point in the history
fix: jetpack search initializer blog id
  • Loading branch information
mboynes authored Oct 10, 2024
2 parents 08b4140 + 623f987 commit 903f7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/jetpack-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 903f7ec

Please sign in to comment.