From b99ed2228cd27e33de4503b9f1670d1438cf4f54 Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Fri, 11 Aug 2017 14:11:46 -0700 Subject: [PATCH] No array_replace in WP or PHP 5.2 --- includes/class-wc-order-item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-order-item.php b/includes/class-wc-order-item.php index 9faca7c4adc..6645d0f3094 100644 --- a/includes/class-wc-order-item.php +++ b/includes/class-wc-order-item.php @@ -77,7 +77,7 @@ class WC_Order_Item extends WC_Data implements ArrayAccess { * @since 3.2.0 */ public function apply_changes() { - $this->data = array_replace( $this->data, $this->changes ); + $this->data = array_merge( $this->data, $this->changes ); $this->changes = array(); }