From 2b3a8b9e1cda7d6898c293e195c9d804259d5e87 Mon Sep 17 00:00:00 2001 From: Adam Cassis Date: Fri, 11 Oct 2024 09:18:43 +0200 Subject: [PATCH] fix: handle error --- includes/oauth/class-google-login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/oauth/class-google-login.php b/includes/oauth/class-google-login.php index e3d4cdde9..dd12031ac 100644 --- a/includes/oauth/class-google-login.php +++ b/includes/oauth/class-google-login.php @@ -123,7 +123,7 @@ public static function oauth_callback() { if ( ! wp_verify_nonce( sanitize_text_field( $_GET[ self::AUTH_CALLBACK ] ), self::AUTH_CALLBACK ) ) { /* translators: %s is a unique user id */ - sprintf( __( 'Nonce verification failed for id: %s', 'newspack-plugin' ), OAuth::get_unique_id() ); + self::handle_error( sprintf( __( 'Nonce verification failed for id: %s', 'newspack-plugin' ), OAuth::get_unique_id() ) ); wp_die( esc_html__( 'Invalid nonce.', 'newspack-plugin' ) ); return; }