Skip to content

Commit 3b2d6b1

Browse files
committed
Use phpcs:ignore instead of phpcs:disable.
1 parent aaed06f commit 3b2d6b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Extension.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,21 +1073,22 @@ public function fulfill_order( $entry ) {
10731073
* @return void
10741074
*/
10751075
public function maybe_display_confirmation() {
1076-
// phpcs:disable WordPress.Security.NonceVerification.Recommended
1076+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
10771077
if ( ! \array_key_exists( 'pay_confirmation', $_GET ) ) {
10781078
return;
10791079
}
10801080

1081+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
10811082
$payment_id = (int) \sanitize_text_field( \wp_unslash( $_GET['pay_confirmation'] ) );
10821083

1084+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
10831085
if ( ! \array_key_exists( 'hash', $_GET ) ) {
10841086
return;
10851087
}
10861088

1089+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
10871090
$hash = \sanitize_text_field( \wp_unslash( $_GET['hash'] ) );
10881091

1089-
// phpcs:enable WordPress.Security.NonceVerification.Recommended
1090-
10911092
if ( \wp_hash( $payment_id ) !== $hash ) {
10921093
return;
10931094
}

0 commit comments

Comments
 (0)