Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent infinite recursion by calling get_cart_from_session once
Closes woocommerce#7852 A check was aded to prevent get_cart() usage before wp_loaded so all WC components have a chance to load prior to the cart. This should solve the edge-case recursion bug by first checking if the woocommerce_cart_loaded_from_session action has already run. This is triggered when loading the cart for the first time.
- Loading branch information