diff --git a/includes/Core/Authentication/Authentication.php b/includes/Core/Authentication/Authentication.php index 8f31631c0dc..c32dfadc601 100644 --- a/includes/Core/Authentication/Authentication.php +++ b/includes/Core/Authentication/Authentication.php @@ -277,9 +277,7 @@ public function get_oauth_client() { * @since 1.0.0 */ public function disconnect() { - $auth_client = $this->get_oauth_client(); - - $auth_client->revoke_token(); + $this->get_oauth_client()->revoke_token(); $this->user_options->delete( Clients\OAuth_Client::OPTION_ACCESS_TOKEN ); $this->user_options->delete( Clients\OAuth_Client::OPTION_ACCESS_TOKEN_EXPIRES_IN );