From 05227eb04d020f4add030eecfb64ee9803473a46 Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 18 Nov 2021 14:00:02 +0100 Subject: [PATCH] Fix redirect loop when entering password via get query parameters --- password-protected.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/password-protected.php b/password-protected.php index 659c489..6f45228 100644 --- a/password-protected.php +++ b/password-protected.php @@ -321,7 +321,7 @@ public function maybe_process_login() { $this->safe_redirect( remove_query_arg( 'password-protected', $redirect_to ) ); exit; } elseif ( isset( $_GET['password_protected_pwd'] ) ) { - $this->safe_redirect( remove_query_arg( 'password-protected' ) ); + $this->safe_redirect( remove_query_arg( ['password_protected_pwd', 'password-protected'] ) ); exit; }