From bdc8e59c9647d95c5d160d21f4abd6efe26788f3 Mon Sep 17 00:00:00 2001 From: Rebecca Hum Date: Fri, 13 Dec 2024 16:27:59 -0500 Subject: [PATCH] SDS: For search, track EP_IS_NETWORK constant (#6050) --- config/class-site-details-index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/class-site-details-index.php b/config/class-site-details-index.php index cf59066c45..bd3dd2f1ff 100644 --- a/config/class-site-details-index.php +++ b/config/class-site-details-index.php @@ -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;