mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix phpcs
This commit is contained in:
parent
892a605219
commit
a068350c98
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@ class CardFieldsModule implements ModuleInterface {
|
||||||
add_filter(
|
add_filter(
|
||||||
'ppcp_create_order_request_body_data',
|
'ppcp_create_order_request_body_data',
|
||||||
function( array $data ) use ( $c ): array {
|
function( array $data ) use ( $c ): array {
|
||||||
|
// phpcs:ignore WordPress.Security.NonceVerification.Missing
|
||||||
$payment_method = wc_clean( wp_unslash( $_POST['payment_method'] ?? '' ) );
|
$payment_method = wc_clean( wp_unslash( $_POST['payment_method'] ?? '' ) );
|
||||||
if ( $payment_method !== CreditCardGateway::ID ) {
|
if ( $payment_method !== CreditCardGateway::ID ) {
|
||||||
return $data;
|
return $data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue