From 20c8468fe4f34e822fbb9d42266db6ed25d2c1a5 Mon Sep 17 00:00:00 2001 From: Khan M Rashedun-Naby Date: Wed, 6 Jun 2018 17:35:15 +0600 Subject: [PATCH] handle_auth_requests PHPDoc and WPCS Fix --- includes/class-wc-auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-auth.php b/includes/class-wc-auth.php index 33d05a7d35b..105c9353569 100644 --- a/includes/class-wc-auth.php +++ b/includes/class-wc-auth.php @@ -287,6 +287,7 @@ class WC_Auth { * Handle auth requests. * * @since 2.4.0 + * @throws Exception When auth_endpoint validation fails. */ public function handle_auth_requests() { global $wp; @@ -295,7 +296,7 @@ class WC_Auth { $wp->query_vars['wc-auth-version'] = wc_clean( wp_unslash( $_GET['wc-auth-version'] ) ); // WPCS: input var ok, CSRF ok. } - if ( ! empty( $_GET['wc-auth-route'] ) ) { + if ( ! empty( $_GET['wc-auth-route'] ) ) { // WPCS: input var ok, CSRF ok. $wp->query_vars['wc-auth-route'] = wc_clean( wp_unslash( $_GET['wc-auth-route'] ) ); // WPCS: input var ok, CSRF ok. }