From 511b8925ff1f52d55ce2468303f0b8b7a63766ca Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Thu, 5 Jul 2018 20:50:17 -0700 Subject: [PATCH] remove unnecessary param * `$endpoint` is not needed since we always do local code verification * there is no second parameter to the `verify_local_authorization_code` function --- includes/class-indieauth-token-endpoint.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/class-indieauth-token-endpoint.php b/includes/class-indieauth-token-endpoint.php index 97a49e9..c93f674 100644 --- a/includes/class-indieauth-token-endpoint.php +++ b/includes/class-indieauth-token-endpoint.php @@ -124,13 +124,12 @@ public function request( $params ) { if ( ! empty( $diff ) ) { return new WP_OAuth_Response( 'invalid_request', __( 'The request is missing one or more required parameters', 'indieauth' ), 400 ); } - $endpoint = find_rels( $params['me'], 'authorization_endpoint' ); $response = $this->verify_local_authorization_code( array( 'code' => $params['code'], 'redirect_uri' => $params['redirect_uri'], 'client_id' => $params['client_id'], - ), $endpoint + ) ); $error = get_oauth_error( $response ); if ( $error ) {