Unset changes

This commit is contained in:
Mike Jolley 2016-12-19 11:22:43 +00:00
parent 48bf909fa2
commit 5fc67bbd0c
1 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,10 @@ class WC_Order_Item extends WC_Data implements ArrayAccess {
unset( $this->data[ $offset ] );
}
if ( array_key_exists( $offset, $this->changes ) ) {
unset( $this->changes[ $offset ] );
}
$this->delete_meta_data( '_' . $offset );
}