|
@@ 1329-1331 (lines=3) @@
|
| 1326 |
|
*/ |
| 1327 |
|
public function delete_all_connection_tokens( $ignore_connected_plugins = false ) { |
| 1328 |
|
// refuse to delete if we're not the last Jetpack plugin installed. |
| 1329 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1330 |
|
return false; |
| 1331 |
|
} |
| 1332 |
|
|
| 1333 |
|
return Tokens::delete_all(); |
| 1334 |
|
} |
|
@@ 1348-1350 (lines=3) @@
|
| 1345 |
|
* @return bool True if disconnected successfully, false otherwise. |
| 1346 |
|
*/ |
| 1347 |
|
public function disconnect_site_wpcom( $ignore_connected_plugins = false ) { |
| 1348 |
|
if ( ! $ignore_connected_plugins && null !== $this->plugin && ! $this->plugin->is_only() ) { |
| 1349 |
|
return false; |
| 1350 |
|
} |
| 1351 |
|
|
| 1352 |
|
/** |
| 1353 |
|
* Fires upon the disconnect attempt. |