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. }