Correctly format product names in paypal. Fixes #3308.

@coenjacobs for .14 please
This commit is contained in:
Mike Jolley 2013-08-19 11:44:41 +01:00
parent 03e3e6e9ca
commit 759e49a60b
1 changed files with 1 additions and 1 deletions

View File

@ -369,7 +369,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
if ( $meta = $item_meta->display( true, true ) )
$item_name .= ' ( ' . $meta . ' )';
$paypal_args[ 'item_name_' . $item_loop ] = $item_name;
$paypal_args[ 'item_name_' . $item_loop ] = html_entity_decode( $item_name, ENT_NOQUOTES, 'UTF-8' );
$paypal_args[ 'quantity_' . $item_loop ] = $item['qty'];
$paypal_args[ 'amount_' . $item_loop ] = $order->get_item_subtotal( $item, false );