Skip to content

Commit

Permalink
suppress phpcs warning since its irrelevant in this case
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame committed Sep 21, 2022
1 parent ebd4033 commit 5ec0967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Http/Handlers/AuthorizeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function handle( Request $request, Response $response ): Response {

$user = wp_get_current_user();
if ( $this->consent_storage->needs_consent( $user->ID ) ) {
// phpcs:disable WordPress.Security.NonceVerification.Recommended We already have REST API nonce validating the user intention with this request
if ( ! isset( $_REQUEST['authorize'] ) || 'Authorize' !== $_REQUEST['authorize'] ) {
$response->send();
exit;
Expand Down

0 comments on commit 5ec0967

Please sign in to comment.