No array_replace in WP or PHP 5.2

This commit is contained in:
claudiulodro 2017-08-11 14:11:46 -07:00
parent 837e7e1ed2
commit b99ed2228c
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}