@@ 1348-1350 (lines=3) @@ | ||
1345 | */ |
|
1346 | public function delete_all_connection_tokens( $ignore_connected_plugins = false ) { |
|
1347 | // refuse to delete if we're not the last Jetpack plugin installed. |
|
1348 | if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
|
1349 | return false; |
|
1350 | } |
|
1351 | ||
1352 | /** |
|
1353 | * Fires upon the disconnect attempt. |
|
@@ 1395-1397 (lines=3) @@ | ||
1392 | * @return bool True if disconnected successfully, false otherwise. |
|
1393 | */ |
|
1394 | public function disconnect_site_wpcom( $ignore_connected_plugins = false ) { |
|
1395 | if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
|
1396 | return false; |
|
1397 | } |
|
1398 | ||
1399 | /** |
|
1400 | * Fires upon the disconnect attempt. |