Skip to content

Commit

Permalink
My Jetpack: Updating condition for missing connection notice (#39427)
Browse files Browse the repository at this point in the history
* My Jetpack: Updating connection notice condition

* changelog

* Cleanup

* My Jetpack: Updating connection notice condition - server side
  • Loading branch information
grzegorz-cp authored and gogdzl committed Oct 25, 2024
1 parent d5fb2e7 commit 0814232
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: Avoid showing missing connection notice if it was never established.


8 changes: 0 additions & 8 deletions projects/packages/my-jetpack/src/class-initializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,14 +955,6 @@ public static function alert_if_missing_connection( array $red_bubble_slugs ) {
return $red_bubble_slugs;
}

if ( ! $connection->is_user_connected() && ! $connection->has_connected_owner() ) {
$red_bubble_slugs[ self::MISSING_CONNECTION_NOTIFICATION_KEY ] = array(
'type' => 'user',
'is_error' => false,
);
return $red_bubble_slugs;
}

if ( ! $connection->is_connected() ) {
$red_bubble_slugs[ self::MISSING_CONNECTION_NOTIFICATION_KEY ] = array(
'type' => 'site',
Expand Down

0 comments on commit 0814232

Please sign in to comment.