From fa850ecfb45a2fb2652f9d8e526a750ab2c59922 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 11 Jul 2017 12:09:57 -0300 Subject: [PATCH] Removed PayPal legacy code --- .../paypal/includes/class-wc-gateway-paypal-response.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php b/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php index b543f362736..659bd129008 100644 --- a/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php +++ b/includes/gateways/paypal/includes/class-wc-gateway-paypal-response.php @@ -23,11 +23,6 @@ abstract class WC_Gateway_Paypal_Response { $order_id = $custom->order_id; $order_key = $custom->order_key; - // Fallback to serialized data if safe. This is @deprecated in 2.3.11 - } elseif ( preg_match( '/^a:2:{/', $raw_custom ) && ! preg_match( '/[CO]:\+?[0-9]+:"/', $raw_custom ) && ( $custom = maybe_unserialize( $raw_custom ) ) ) { - $order_id = $custom[0]; - $order_key = $custom[1]; - // Nothing was found. } else { WC_Gateway_Paypal::log( 'Order ID and key were not found in "custom".', 'error' );