diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 182f30d0e21..e0981312932 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -1830,7 +1830,7 @@ class WC_AJAX { // Prepare line items which we are refunding. $line_items = array(); - $item_ids = array_unique( array_merge( array_keys( $line_item_qtys, $line_item_totals, true ) ) ); + $item_ids = array_unique( array_merge( array_keys( $line_item_qtys ), array_keys( $line_item_totals ) ) ); foreach ( $item_ids as $item_id ) { $line_items[ $item_id ] = array(