Skip to content

Commit

Permalink
Added a check for WPCOM.
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor committed Jun 12, 2024
1 parent 5b4875c commit 0e38e6e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ function wpcom_site_has_feature( $feature, $blog_id = 0 ) {
$blog = null;
if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) {
$site_type = 'wpcom';
} else {
} elseif ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
$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.
Expand Down

0 comments on commit 0e38e6e

Please sign in to comment.