mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Disable phpcs when nonce check not needed
This commit is contained in:
parent
a77078a372
commit
4e248a815e
10 changed files with 19 additions and 14 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue