handle_auth_requests PHPDoc and WPCS Fix

This commit is contained in:
Khan M Rashedun-Naby 2018-06-06 17:35:15 +06:00
parent 93e7419b17
commit 20c8468fe4
1 changed files with 2 additions and 1 deletions

View File

@ -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.
}