Merge pull request #10354 from Ninos/checkout-notices
Fixed: Notice in checkout (order received) - undefined variable $order
This commit is contained in:
commit
5f9786fe8c
|
@ -198,8 +198,9 @@ class WC_Shortcode_Checkout {
|
||||||
|
|
||||||
if ( $order_id > 0 ) {
|
if ( $order_id > 0 ) {
|
||||||
$order = wc_get_order( $order_id );
|
$order = wc_get_order( $order_id );
|
||||||
if ( $order->order_key != $order_key )
|
if ( $order->order_key != $order_key ) {
|
||||||
unset( $order );
|
$order = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty awaiting payment session
|
// Empty awaiting payment session
|
||||||
|
|
Loading…
Reference in New Issue