From 0d115b70a654dd02d9fb926ceec4a7ba46870131 Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Wed, 12 Jun 2024 20:52:34 +0300 Subject: [PATCH] Revert "Added a check for WPCOM." This reverts commit 0e38e6ecf14b87c924cbb42d24ecda2ddac5a190. --- .../wpcomsh/wpcom-features/functions-wpcom-features.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/plugins/wpcomsh/wpcom-features/functions-wpcom-features.php b/projects/plugins/wpcomsh/wpcom-features/functions-wpcom-features.php index 38f0c2aeb6b28..6d14d2b0d1de0 100644 --- a/projects/plugins/wpcomsh/wpcom-features/functions-wpcom-features.php +++ b/projects/plugins/wpcomsh/wpcom-features/functions-wpcom-features.php @@ -59,11 +59,9 @@ function wpcom_site_has_feature( $feature, $blog_id = 0 ) { $blog = null; if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) { $site_type = 'wpcom'; - } elseif ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { + } else { $blog = get_blog_details( $blog_id, false ); $site_type = is_blog_wpcom( $blog ) || is_blog_atomic( $blog ) ? 'wpcom' : 'jetpack'; - } else { - $site_type = 'jetpack'; } // A8C override for certain sites.