6ab03e6acd
While creating an order, if we remove an item after adding, `pre_post_update` hook gets called. Since the order is not created yet, `$order->get_date_created()` will be null, and this will cause a fatal in the event tracker which checks for and tracks edit in order created date. We now return early when order status is `auto-draft` to prevent these kind of errors. |
||
---|---|---|
.. | ||
events | ||
class-wc-site-tracking.php | ||
class-wc-tracks-client.php | ||
class-wc-tracks-event.php | ||
class-wc-tracks-footer-pixel.php | ||
class-wc-tracks.php |