Check nonces

This commit is contained in:
dinamiko 2022-10-20 15:48:29 +02:00
parent a18832371e
commit 2cc0f2378c
7 changed files with 10 additions and 4 deletions

View file

@ -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'