From 2a71d08d44be423529c50cbd2ada4056a8e3930e Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Thu, 10 Jan 2013 16:03:56 +0000 Subject: [PATCH] Wrong email in paypal #2184 --- classes/gateways/paypal/class-wc-gateway-paypal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/gateways/paypal/class-wc-gateway-paypal.php b/classes/gateways/paypal/class-wc-gateway-paypal.php index b7c2c4cb262..00f66ebb527 100644 --- a/classes/gateways/paypal/class-wc-gateway-paypal.php +++ b/classes/gateways/paypal/class-wc-gateway-paypal.php @@ -672,7 +672,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway { sprintf( __( 'Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] ) ); - $mailer->send( get_option( 'woocommerce_new_order_email_recipient' ), sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), $message ); + $mailer->send( get_option( 'admin_email' ), sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), $message ); } @@ -690,7 +690,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway { sprintf(__( 'Order %s has been marked as refunded - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), $posted['reason_code'] ) ); - $mailer->send( get_option( 'woocommerce_new_order_email_recipient' ), sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), $message ); + $mailer->send( get_option( 'admin_email' ), sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), $order->get_order_number() ), $message ); break; default :