|
@@ 1523-1525 (lines=3) @@
|
| 1520 |
|
*/ |
| 1521 |
|
public function delete_all_connection_tokens( $ignore_connected_plugins = false ) { |
| 1522 |
|
// refuse to delete if we're not the last Jetpack plugin installed. |
| 1523 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1524 |
|
return false; |
| 1525 |
|
} |
| 1526 |
|
|
| 1527 |
|
/** |
| 1528 |
|
* Fires upon the disconnect attempt. |
|
@@ 1570-1572 (lines=3) @@
|
| 1567 |
|
* @return bool True if disconnected successfully, false otherwise. |
| 1568 |
|
*/ |
| 1569 |
|
public function disconnect_site_wpcom( $ignore_connected_plugins = false ) { |
| 1570 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1571 |
|
return false; |
| 1572 |
|
} |
| 1573 |
|
|
| 1574 |
|
/** |
| 1575 |
|
* Fires upon the disconnect attempt. |