Move paypal CMD to end of post vars.

This commit is contained in:
Mike Jolley 2016-11-25 11:41:49 +00:00
parent b8f35fe1e2
commit b620a8c8fb
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response {
WC_Gateway_Paypal::log( 'Checking IPN response is valid' );
// Get received values from post data
$validate_ipn = array( 'cmd' => '_notify-validate' );
$validate_ipn += wp_unslash( $_POST );
$validate_ipn = wp_unslash( $_POST );
$validate_ipn['cmd'] = '_notify-validate';
// Send back post vars to paypal
$params = array(