From bd0526dab2e0291502fc96d5a7892bc13f74b112 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Wed, 13 Nov 2019 20:29:51 +0200 Subject: [PATCH] don't bail out in revoke_token unnecessarily --- includes/Core/Authentication/Clients/OAuth_Client.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/Core/Authentication/Clients/OAuth_Client.php b/includes/Core/Authentication/Clients/OAuth_Client.php index 4e6b8c27651..944212442bf 100644 --- a/includes/Core/Authentication/Clients/OAuth_Client.php +++ b/includes/Core/Authentication/Clients/OAuth_Client.php @@ -287,13 +287,8 @@ public function refresh_token() { * @since 1.0.0 */ public function revoke_token() { - // Stop if google_client not initialized yet. - if ( ! $this->google_client instanceof Google_Client ) { - return; - } - try { - $this->google_client->revokeToken(); + $this->get_client()->revokeToken(); } catch ( \Exception $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement // No special handling, we just need to make sure this goes through. }