diff --git a/projects/packages/my-jetpack/changelog/fix-my-jetpack-missing-site-connection-notice b/projects/packages/my-jetpack/changelog/fix-my-jetpack-missing-site-connection-notice new file mode 100644 index 0000000000000..d3d0a28308af9 --- /dev/null +++ b/projects/packages/my-jetpack/changelog/fix-my-jetpack-missing-site-connection-notice @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Fix the "Missing site connection" notice. diff --git a/projects/packages/my-jetpack/src/class-initializer.php b/projects/packages/my-jetpack/src/class-initializer.php index 678d2464c879e..eb6c2f7983afe 100644 --- a/projects/packages/my-jetpack/src/class-initializer.php +++ b/projects/packages/my-jetpack/src/class-initializer.php @@ -940,17 +940,18 @@ public static function alert_if_missing_connection( array $red_bubble_slugs ) { $broken_modules = self::check_for_broken_modules(); $connection = new Connection_Manager(); - if ( ! empty( $broken_modules['needs_user_connection'] ) ) { + // Checking for site connection issues first. + if ( ! empty( $broken_modules['needs_site_connection'] ) ) { $red_bubble_slugs[ self::MISSING_CONNECTION_NOTIFICATION_KEY ] = array( - 'type' => 'user', + 'type' => 'site', 'is_error' => true, ); return $red_bubble_slugs; } - if ( ! empty( $broken_modules['needs_site_connection'] ) ) { + if ( ! empty( $broken_modules['needs_user_connection'] ) ) { $red_bubble_slugs[ self::MISSING_CONNECTION_NOTIFICATION_KEY ] = array( - 'type' => 'site', + 'type' => 'user', 'is_error' => true, ); return $red_bubble_slugs;