From d4dcc10ef6ad80237563533de5fd05de8e16745f Mon Sep 17 00:00:00 2001 From: Alex P Date: Thu, 12 May 2022 17:38:22 +0300 Subject: [PATCH] Remove outdated comment --- .../ppcp-wc-gateway/src/Settings/SettingsListener.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php b/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php index 76ffbe43d..b43f89d0c 100644 --- a/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php +++ b/modules/ppcp-wc-gateway/src/Settings/SettingsListener.php @@ -441,19 +441,10 @@ class SettingsListener { */ private function is_valid_site_request() : bool { - /** - * No nonce needed at this point. - * - * phpcs:disable WordPress.Security.NonceVerification.Missing - * phpcs:disable WordPress.Security.NonceVerification.Recommended - */ if ( empty( $this->page_id ) ) { return false; } - // phpcs:enable WordPress.Security.NonceVerification.Missing - // phpcs:enable WordPress.Security.NonceVerification.Recommended - if ( ! current_user_can( 'manage_woocommerce' ) ) { return false; }