diff --git a/includes/admin/meta-boxes/views/html-order-items.php b/includes/admin/meta-boxes/views/html-order-items.php
index d8c1f5a5be3..121c6cee6c4 100644
--- a/includes/admin/meta-boxes/views/html-order-items.php
+++ b/includes/admin/meta-boxes/views/html-order-items.php
@@ -56,7 +56,6 @@ if ( wc_tax_enabled() ) {
foreach ( $line_items as $item_id => $item ) {
do_action( 'woocommerce_before_order_item_' . $item->get_type() . '_html', $item_id, $item, $order );
- $class = isset( $new_item_ids ) && is_array( $new_item_ids ) && in_array( $item_id, $new_item_ids ) ? 'new_row' : '';
include( 'html-order-item.php' );
do_action( 'woocommerce_order_item_' . $item->get_type() . '_html', $item_id, $item, $order );
diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php
index c0a7cc1e57d..f10a6133def 100644
--- a/includes/class-wc-ajax.php
+++ b/includes/class-wc-ajax.php
@@ -770,7 +770,6 @@ class WC_AJAX {
$order_id = absint( $_POST['order_id'] );
$order = wc_get_order( $order_id );
$items_to_add = wp_parse_id_list( is_array( $_POST['item_to_add'] ) ? $_POST['item_to_add'] : array( $_POST['item_to_add'] ) );
- $new_item_ids = array();
if ( ! $order ) {
throw new Exception( __( 'Invalid order', 'woocommerce' ) );
@@ -782,8 +781,6 @@ class WC_AJAX {
}
$item_id = $order->add_product( wc_get_product( $item_to_add ) );
$item = apply_filters( 'woocommerce_ajax_order_item', $order->get_item( $item_id ), $item_id );
- $new_item_ids[] = $item_id;
-
do_action( 'woocommerce_ajax_add_order_item_meta', $item_id, $item, $order );
}