mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Check nonces
This commit is contained in:
parent
a18832371e
commit
2cc0f2378c
7 changed files with 10 additions and 4 deletions
|
@ -100,7 +100,7 @@ class SubscriptionModule implements ModuleInterface {
|
|||
add_filter(
|
||||
'ppcp_create_order_request_body_data',
|
||||
function( array $data ) use ( $c ) {
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing)
|
||||
// phpcs:ignore WordPress.Security.NonceVerification.Missing
|
||||
$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