From d875e924c704f0f2a20cb1b2ad282afa4b570e9c Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Tue, 7 Apr 2020 07:30:43 -0700 Subject: [PATCH] Ensure that validation query vars persist through redirects (#4544) --- includes/validation/class-amp-validation-manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/validation/class-amp-validation-manager.php b/includes/validation/class-amp-validation-manager.php index ce1323589a8..94baa835e3a 100644 --- a/includes/validation/class-amp-validation-manager.php +++ b/includes/validation/class-amp-validation-manager.php @@ -2077,7 +2077,7 @@ public static function validate_url( $url ) { break; } - $validation_url = $location_header; + $validation_url = add_query_arg( $added_query_vars, $location_header ); } if ( is_wp_error( $r ) ) {