Merge pull request #16075 from woocommerce/refactor/remove-legacy-code

Removed PayPal legacy code
This commit is contained in:
Mike Jolley 2017-07-11 16:17:28 +01:00 committed by GitHub
commit 651ca35067
1 changed files with 0 additions and 5 deletions

View File

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