From 8dae054e0c92c02e7b3b51c03fbdd90d09827925 Mon Sep 17 00:00:00 2001 From: doublesharp Date: Sat, 18 Oct 2014 01:04:40 -0700 Subject: [PATCH] Update class-wc-addons-gateway-simplify-commerce.php Use new $order->get_status() in lieu of legacy $order->status to support the new post_status format in WC 2.2 --- .../class-wc-addons-gateway-simplify-commerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php b/includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php index ed9cb2acf15..08ca846f789 100644 --- a/includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php +++ b/includes/gateways/simplify-commerce/class-wc-addons-gateway-simplify-commerce.php @@ -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 );