mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
disable phpcsc errors
This commit is contained in:
parent
4a2d522ccb
commit
1c96726a72
1 changed files with 10 additions and 0 deletions
|
@ -125,10 +125,20 @@ class SettingsListener {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent enabling both Pay Later messaging and PayPal vaulting
|
||||||
|
*/
|
||||||
public function listen_for_vaulting_enabled() {
|
public function listen_for_vaulting_enabled() {
|
||||||
if ( ! $this->is_valid_site_request() ) {
|
if ( ! $this->is_valid_site_request() ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No need to verify nonce here.
|
||||||
|
*
|
||||||
|
* phpcs:disable WordPress.Security.NonceVerification.Missing
|
||||||
|
* phpcs:disable WordPress.Security.NonceVerification.Recommended
|
||||||
|
*/
|
||||||
if ( ! isset( $_POST['ppcp']['vault_enabled'] ) && ! isset( $_POST['ppcp']['save_paypal_account'] ) ) {
|
if ( ! isset( $_POST['ppcp']['vault_enabled'] ) && ! isset( $_POST['ppcp']['save_paypal_account'] ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue