Removing obsolete code

This commit is contained in:
George Lagonikas 2017-11-14 22:30:28 +00:00 committed by GitHub
parent bca6bc7375
commit 6b7cc782d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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;