From 6b7cc782d2861b3d7f27433c3b6ac7446b561f18 Mon Sep 17 00:00:00 2001 From: George Lagonikas Date: Tue, 14 Nov 2017 22:30:28 +0000 Subject: [PATCH] Removing obsolete code --- .../paypal/includes/class-wc-gateway-paypal-ipn-handler.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php b/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php index c4608875d17..bdfe08909c7 100644 --- a/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php +++ b/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php @@ -339,7 +339,6 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response { $mailer = WC()->mailer(); $message = $mailer->wrap_message( $subject, $message ); - $ipn_notification = 'yes'; $woocommerce_paypal_settings = get_option('woocommerce_paypal_settings'); if ( ! empty( $woocommerce_paypal_settings['ipn_notification'] ) && 'no' === $woocommerce_paypal_settings['ipn_notification'] ) { return;