Skip to content

Commit

Permalink
Always initialize on Simple sites.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymitr committed Oct 2, 2024
1 parent 05dcffd commit c958fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/packages/connection/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c958fd6

Please sign in to comment.