plugin updates

This commit is contained in:
Tony Volpe
2024-09-05 11:04:01 -04:00
parent ed6b060261
commit 50cd64dd3d
925 changed files with 16918 additions and 13003 deletions

View File

@@ -184,7 +184,7 @@ function wc_clear_cart_after_payment() {
}
}
if ( WC()->session->order_awaiting_payment > 0 ) {
if ( is_object( WC()->session ) && WC()->session->order_awaiting_payment > 0 ) {
$order = wc_get_order( WC()->session->order_awaiting_payment );
if ( $order instanceof WC_Order && $order->get_id() > 0 ) {