Skip to content

Commit

Permalink
Reposition phpcs:ignore comments to prevent them from being stripped …
Browse files Browse the repository at this point in the history
…when using PHP-Scoper with the codebase.
  • Loading branch information
felixarntz committed Aug 13, 2024
1 parent d0eb6b5 commit 8f43e8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/General/Mutable_Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ class Mutable_Input extends Input {
public function filter( $type, $variable_name, $filter = FILTER_DEFAULT, $options = 0 ) {
switch ( $type ) {
case INPUT_GET:
$superglobal = $_GET; // phpcs:ignore WordPress.Security.NonceVerification
// phpcs:ignore WordPress.Security.NonceVerification
$superglobal = $_GET;
break;
case INPUT_POST:
$superglobal = $_POST; // phpcs:ignore WordPress.Security.NonceVerification
// phpcs:ignore WordPress.Security.NonceVerification
$superglobal = $_POST;
break;
case INPUT_SERVER:
$superglobal = $_SERVER;
Expand Down

0 comments on commit 8f43e8e

Please sign in to comment.