Merge pull request #15353 from woocommerce/fix/15245

Set all legacy data
This commit is contained in:
Claudio Sanches 2017-05-30 17:58:28 -03:00 committed by GitHub
commit 64a60de24f
1 changed files with 3 additions and 3 deletions

View File

@ -576,9 +576,6 @@ class WC_Checkout {
}
$data[ $key ] = apply_filters( 'woocommerce_process_checkout_' . $type . '_field', apply_filters( 'woocommerce_process_checkout_field_' . $key, $value ) );
// BW compatibility.
$this->legacy_posted_data[ $key ] = $data[ $key ];
}
}
@ -588,6 +585,9 @@ class WC_Checkout {
}
}
// BW compatibility.
$this->legacy_posted_data = $data;
return $data;
}