Skip to content

Commit

Permalink
Fix Jetpack heartbeat deactivation jobs cleanup (#41117)
Browse files Browse the repository at this point in the history
* Add heartbeat deactivation on site disconnection

* changelog
  • Loading branch information
zaerl authored Jan 20, 2025
1 parent 873bdac commit b816b8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Add heartbeat deactivation on site disconnection.
2 changes: 2 additions & 0 deletions projects/packages/connection/src/class-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2190,6 +2190,8 @@ public function disconnect_site( $disconnect_wpcom = true, $ignore_connected_plu

( new Nonce_Handler() )->clean_all();

Heartbeat::init()->deactivate();

/**
* Fires before a site is disconnected.
*
Expand Down

0 comments on commit b816b8e

Please sign in to comment.