mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Removed duplicated nonce validation
This commit is contained in:
parent
b38658aeeb
commit
5233e9caf6
1 changed files with 0 additions and 10 deletions
|
@ -69,16 +69,6 @@ class UpdatePaymentDataEndpoint {
|
|||
try {
|
||||
$data = $this->request_data->read_request( $this->nonce() );
|
||||
|
||||
// Validate nonce.
|
||||
if (
|
||||
! isset( $data['nonce'] )
|
||||
|| ! wp_verify_nonce( $data['nonce'], self::nonce() )
|
||||
) {
|
||||
throw new RuntimeException(
|
||||
__( 'Could not validate nonce.', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
}
|
||||
|
||||
// Validate payment data.
|
||||
if ( ! isset( $data['paymentData'] ) ) {
|
||||
throw new RuntimeException(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue