diff --git a/projects/packages/connection/actions.php b/projects/packages/connection/actions.php index a25f876be32c..486d29dad0ef 100644 --- a/projects/packages/connection/actions.php +++ b/projects/packages/connection/actions.php @@ -5,11 +5,6 @@ * @package automattic/jetpack-connection */ -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; -} - // If WordPress's plugin API is available already, use it. If not, // drop data into `$wp_filter` for `WP_Hook::build_preinitialized_hooks()`. if ( function_exists( 'add_action' ) ) { diff --git a/projects/packages/connection/changelog/register-jetpack-connection-scripts-absolutely b/projects/packages/connection/changelog/register-jetpack-connection-scripts-absolutely new file mode 100644 index 000000000000..04ce7d8eb0d1 --- /dev/null +++ b/projects/packages/connection/changelog/register-jetpack-connection-scripts-absolutely @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Connection: register assets absolutely