From 6902aa852c26989bced375e2a540af32ff0a019b Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 22 Aug 2013 12:25:32 +0100 Subject: [PATCH] Fix fatal error when sending order mail --- .../post-types/meta-boxes/class-wc-meta-box-order-actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-actions.php b/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-actions.php index eb0722b8c1f..ff1999f9136 100644 --- a/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-actions.php +++ b/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-actions.php @@ -93,7 +93,7 @@ class WC_Meta_Box_Order_Actions { do_action( 'woocommerce_before_resend_order_emails', $order ); - $mailer = $woocommerce->mailer(); + $mailer = WC()->mailer(); $email_to_send = str_replace( 'send_email_', '', $action );