Merge pull request #6572 from doublesharp/patch-2

Update class-wc-addons-gateway-simplify-commerce.php
This commit is contained in:
Mike Jolley 2014-10-20 16:06:57 +01:00
commit 4fa1404d86
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ class WC_Addons_Gateway_Simplify_Commerce extends WC_Gateway_Simplify_Commerce {
// Mark order as failed if not already set,
// otherwise, make sure we add the order note so we can detect when someone fails to check out multiple times
if ( 'failed' != $order->status ) {
if ( 'failed' != $order->get_status() ) {
$order->update_status( 'failed', $order_note );
} else {
$order->add_order_note( $order_note );