Skip to content

Commit

Permalink
Supressing PHPCS error for superglobal use
Browse files Browse the repository at this point in the history
  • Loading branch information
aldavigdis committed Jul 18, 2024
1 parent e258bb0 commit 1137183
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Hooks/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function __construct() {

if (
(
// Superlobal is not passed into anything.
// phpcs:ignore WordPress.Security.NonceVerification
isset( $_GET['page'] )
)
&&
Expand Down Expand Up @@ -137,7 +139,7 @@ public static function dk_invoice_column(
if ( ! empty( $invoice_creation_error ) ) {
echo '<span class="dashicons dashicons-no invoice_error"></span> ';
echo '<span class="invoice_error">';
echo 'Error';
esc_html_e( 'Error', '1984-dk-woo' );
echo '</span>';
return;
}
Expand Down

0 comments on commit 1137183

Please sign in to comment.