|
@@ 1379-1381 (lines=3) @@
|
| 1376 |
|
*/ |
| 1377 |
|
public function delete_all_connection_tokens( $ignore_connected_plugins = false ) { |
| 1378 |
|
// refuse to delete if we're not the last Jetpack plugin installed. |
| 1379 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1380 |
|
return false; |
| 1381 |
|
} |
| 1382 |
|
|
| 1383 |
|
/** |
| 1384 |
|
* Fires upon the disconnect attempt. |
|
@@ 1426-1428 (lines=3) @@
|
| 1423 |
|
* @return bool True if disconnected successfully, false otherwise. |
| 1424 |
|
*/ |
| 1425 |
|
public function disconnect_site_wpcom( $ignore_connected_plugins = false ) { |
| 1426 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1427 |
|
return false; |
| 1428 |
|
} |
| 1429 |
|
|
| 1430 |
|
/** |
| 1431 |
|
* Fires upon the disconnect attempt. |