From c958fd60905d42a52659b333d9882ce80fd4e507 Mon Sep 17 00:00:00 2001 From: sergeymitr Date: Wed, 2 Oct 2024 09:59:57 -0400 Subject: [PATCH] Always initialize on Simple sites. --- projects/packages/connection/actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/packages/connection/actions.php b/projects/packages/connection/actions.php index 3094500af19fe..a25f876be32c7 100644 --- a/projects/packages/connection/actions.php +++ b/projects/packages/connection/actions.php @@ -5,8 +5,8 @@ * @package automattic/jetpack-connection */ -if ( function_exists( 'is_admin' ) && ! is_admin() ) { - // Only initialize the assets in the admin area, or if we aren't quite sure about it. +if ( function_exists( 'is_admin' ) && ! is_admin() && ( ! defined( 'IS_WPCOM' ) || ! IS_WPCOM ) ) { + // Don't initialize the assets in the frontend on self-hosted and WoA. return; }