Skip to content

Commit

Permalink
separate explanation for phpcs:disable by --
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfame committed Sep 21, 2022
1 parent 5ec0967 commit 1ca02bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Handlers/AuthorizeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +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
// 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 1ca02bc

Please sign in to comment.