From bde7b1cde97e1c0f643a0bf349c2f40125d9c702 Mon Sep 17 00:00:00 2001 From: Max Rice Date: Fri, 4 Apr 2014 14:22:06 -0400 Subject: [PATCH] Remove unnecessary OAuth code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The parameters provided to the API endpoints only contain the parameters specified in the method signature so there’s no need to strip out the OAuth params. --- includes/api/class-wc-api-authentication.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/api/class-wc-api-authentication.php b/includes/api/class-wc-api-authentication.php index 984ee85864a..c2051c32115 100644 --- a/includes/api/class-wc-api-authentication.php +++ b/includes/api/class-wc-api-authentication.php @@ -119,11 +119,6 @@ class WC_API_Authentication { $this->check_oauth_signature( $user, $params ); $this->check_oauth_timestamp_and_nonce( $user, $params['oauth_timestamp'], $params['oauth_nonce'] ); - // remove oauth params before further parsing - foreach( $param_names as $param_name ) { - unset( WC()->api->server->params[ $param_name ] ); - } - // authentication successful, return user return $user; }