summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class-jetpack-xmlrpc-methods.php')
-rw-r--r--plugins/jetpack/class-jetpack-xmlrpc-methods.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/class-jetpack-xmlrpc-methods.php b/plugins/jetpack/class-jetpack-xmlrpc-methods.php
index 7f20cee9..3b6c07ff 100644
--- a/plugins/jetpack/class-jetpack-xmlrpc-methods.php
+++ b/plugins/jetpack/class-jetpack-xmlrpc-methods.php
@@ -97,7 +97,7 @@ class Jetpack_XMLRPC_Methods {
* @param string $data Optional data about the event.
*/
do_action( 'jetpack_event_log', 'disconnect' );
- Jetpack::disconnect();
+ ( new Connection_Manager( 'jetpack' ) )->disconnect_site();
return true;
}
@@ -113,7 +113,7 @@ class Jetpack_XMLRPC_Methods {
$method = (string) $json_api_args[0];
$url = (string) $json_api_args[1];
- $post_body = is_null( $json_api_args[2] ) ? null : (string) $json_api_args[2];
+ $post_body = $json_api_args[2] === null ? null : (string) $json_api_args[2];
$user_details = (array) $json_api_args[4];
$locale = (string) $json_api_args[5];