From 84fd2bbca9d79fad9c68515ec61b2ba60006c833 Mon Sep 17 00:00:00 2001 From: Yash Kapoor <52190071+yash-webkul@users.noreply.github.com> Date: Tue, 25 Jun 2019 10:58:56 +0530 Subject: [PATCH] Update class-wc-ajax.php Removed unused code. --- includes/class-wc-ajax.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index b90b8fb9fdd..3097213271c 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -1814,7 +1814,6 @@ class WC_AJAX { try { $order = wc_get_order( $order_id ); - $order_items = $order->get_items(); $max_refund = wc_format_decimal( $order->get_total() - $order->get_total_refunded(), wc_get_price_decimals() ); if ( ! $refund_amount || $max_refund < $refund_amount || 0 > $refund_amount ) {