mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix psalm
This commit is contained in:
parent
0c2edc1ee7
commit
e3351b8822
5 changed files with 38 additions and 7 deletions
|
@ -152,10 +152,10 @@ class SubscriptionModule implements ModuleInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
$nonce = wc_clean(wp_unslash($_POST['_wcsnonce'])) ?? '';
|
||||
if (
|
||||
$subscriptions_mode !== 'subscriptions_api'
|
||||
|| empty( $_POST['_wcsnonce'] )
|
||||
|| ! wp_verify_nonce( wc_clean( wp_unslash( $_POST['_wcsnonce'] ) ), 'wcs_subscription_meta' ) ) {
|
||||
|| ! wp_verify_nonce( $nonce, 'wcs_subscription_meta' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue