No array_replace in WP or PHP 5.2
This commit is contained in:
parent
837e7e1ed2
commit
b99ed2228c
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue