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. |
||
---|---|---|
.. | ||
class-wc-admin-setup-wizard-tracking.php | ||
class-wc-coupons-tracking.php | ||
class-wc-extensions-tracking.php | ||
class-wc-importer-tracking.php | ||
class-wc-orders-tracking.php | ||
class-wc-products-tracking.php | ||
class-wc-settings-tracking.php | ||
class-wc-status-tracking.php |