|
@@ 1311-1313 (lines=3) @@
|
| 1308 |
|
*/ |
| 1309 |
|
public function delete_all_connection_tokens( $ignore_connected_plugins = false ) { |
| 1310 |
|
// refuse to delete if we're not the last Jetpack plugin installed. |
| 1311 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1312 |
|
return false; |
| 1313 |
|
} |
| 1314 |
|
|
| 1315 |
|
return $this->get_tokens()->delete_all(); |
| 1316 |
|
} |
|
@@ 1330-1332 (lines=3) @@
|
| 1327 |
|
* @return bool True if disconnected successfully, false otherwise. |
| 1328 |
|
*/ |
| 1329 |
|
public function disconnect_site_wpcom( $ignore_connected_plugins = false ) { |
| 1330 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1331 |
|
return false; |
| 1332 |
|
} |
| 1333 |
|
|
| 1334 |
|
/** |
| 1335 |
|
* Fires upon the disconnect attempt. |