Remove array filter

No args should be null/not set since all args defined by WC have values.

Closes #13786
This commit is contained in:
Mike Jolley 2017-03-28 11:49:27 +01:00
parent 1a73034cf6
commit 129293ab6f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class WC_Gateway_Paypal_Request {
* @return string * @return string
*/ */
public function get_request_url( $order, $sandbox = false ) { public function get_request_url( $order, $sandbox = false ) {
$paypal_args = http_build_query( array_filter( $this->get_paypal_args( $order ) ), '', '&' ); $paypal_args = http_build_query( $this->get_paypal_args( $order ), '', '&' );
WC_Gateway_Paypal::log( 'PayPal Request Args for order ' . $order->get_order_number() . ': ' . wc_print_r( $paypal_args, true ) ); WC_Gateway_Paypal::log( 'PayPal Request Args for order ' . $order->get_order_number() . ': ' . wc_print_r( $paypal_args, true ) );