mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #1047 from woocommerce/pcp-1016-address-error
Fix shipping address validation
This commit is contained in:
commit
6a3f96a1e8
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class CheckoutFormValidator extends WC_Checkout {
|
|||
foreach ( $data as $key => $value ) {
|
||||
$_POST[ $key ] = $value;
|
||||
}
|
||||
// And we must call get_posted_data because it handles the shipping address.
|
||||
$data = $this->get_posted_data();
|
||||
|
||||
// It throws some notices when checking fields etc., also from other plugins via hooks.
|
||||
// phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue