Merge pull request #10354 from Ninos/checkout-notices

Fixed: Notice in checkout (order received) - undefined variable $order
This commit is contained in:
Mike Jolley 2016-02-16 12:25:22 +00:00
commit 5f9786fe8c
1 changed files with 3 additions and 2 deletions

View File

@ -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