Skip to content

Commit

Permalink
Send disconnecting userid (#13157)
Browse files Browse the repository at this point in the history
* Send disconnecting userid

* Update

* reverting class.jetpack-ixr-client.php

* Sending requesting user id as additional arg via constructor

* fix typo

* Sending scalar instead of array
  • Loading branch information
gititon authored and jeherve committed Aug 1, 2019
1 parent 277d711 commit 90c52c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -3285,7 +3285,7 @@ public static function disconnect( $update_activated_state = true ) {
$tracking->record_user_event( 'disconnect_site', array() );
Jetpack::load_xml_rpc_client();
$xml = new Jetpack_IXR_Client();
$xml->query( 'jetpack.deregister' );
$xml->query( 'jetpack.deregister', get_current_user_id() );
}

Jetpack_Options::delete_option(
Expand Down

0 comments on commit 90c52c5

Please sign in to comment.