Skip to content

Commit

Permalink
fix: handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
adekbadek committed Oct 11, 2024
1 parent ca27f36 commit 2b3a8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/oauth/class-google-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2b3a8b9

Please sign in to comment.