Pass request uri argument for more explicit function call.

This commit is contained in:
Denis Dvali 2020-02-03 15:47:04 +03:00
parent b6be0b31f8
commit 15ad616a2f
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ class WC_WCCOM_Site {
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$data = array(
'host' => $_SERVER['HTTP_HOST'],
'request_uri' => urldecode( remove_query_arg( array( 'token', 'signature' ) ) ),
'request_uri' => urldecode( remove_query_arg( array( 'token', 'signature' ), $_SERVER['REQUEST_URI'] ) ),
'method' => strtoupper( $_SERVER['REQUEST_METHOD'] ),
);
// phpcs:enable