Disable phpcs when nonce check not needed

This commit is contained in:
dinamiko 2022-10-19 16:52:43 +02:00
parent a77078a372
commit 4e248a815e
10 changed files with 19 additions and 14 deletions

View file

@ -100,6 +100,7 @@ class SubscriptionModule implements ModuleInterface {
add_filter(
'ppcp_create_order_request_body_data',
function( array $data ) use ( $c ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
$wc_order_action = wc_clean( wp_unslash( $_POST['wc_order_action'] ?? '' ) );
if (
$wc_order_action === 'wcs_process_renewal'