Skip to content

Commit

Permalink
SDS: For search, track EP_IS_NETWORK constant (#6050)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Dec 16, 2024
1 parent 14d181a commit bdc8e59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/class-site-details-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,11 @@ public function get_search_info() {
if ( class_exists( '\Automattic\VIP\Search\Search' ) ) {
$search_info['enabled'] = true;
$search_info['query_integration_enabled'] = \Automattic\VIP\Search\Search::is_query_integration_enabled();
$search_info['network_enabled'] = defined( 'EP_IS_NETWORK' ) && true === constant( 'EP_IS_NETWORK' );
} else {
$search_info['enabled'] = false;
$search_info['query_integration_enabled'] = false;
$search_info['network_enabled'] = false;
}

return $search_info;
Expand Down

0 comments on commit bdc8e59

Please sign in to comment.