Changeset 2630781
- Timestamp:
- 11/16/2021 03:20:20 PM (4 years ago)
- Location:
- woo-address-validator
- Files:
-
- 3 edited
- 8 copied
-
tags/2.7 (copied) (copied from woo-address-validator/trunk)
-
tags/2.7/languages/woocommerce-address-validator-de_DE.mo (copied) (copied from woo-address-validator/trunk/languages/woocommerce-address-validator-de_DE.mo)
-
tags/2.7/languages/woocommerce-address-validator-de_DE.po (copied) (copied from woo-address-validator/trunk/languages/woocommerce-address-validator-de_DE.po)
-
tags/2.7/readme.txt (copied) (copied from woo-address-validator/trunk/readme.txt) (1 diff)
-
tags/2.7/src/API/API.php (copied) (copied from woo-address-validator/trunk/src/API/API.php)
-
tags/2.7/src/API/Validator.php (copied) (copied from woo-address-validator/trunk/src/API/Validator.php) (1 diff)
-
tags/2.7/src/Admin.php (copied) (copied from woo-address-validator/trunk/src/Admin.php)
-
tags/2.7/woocommerce-address-validator.php (copied) (copied from woo-address-validator/trunk/woocommerce-address-validator.php) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/API/Validator.php (modified) (1 diff)
-
trunk/woocommerce-address-validator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-address-validator/tags/2.7/readme.txt
r2585480 r2630781 3 3 Tags: woocommerce, validation, address, address validation, billing, shipping, delivery, billing address, shipping address, checkout 4 4 Requires at least: 3.0.1 5 Tested up to: 5.8 6 Stable tag: 2. 65 Tested up to: 5.8.2 6 Stable tag: 2.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
woo-address-validator/tags/2.7/src/API/Validator.php
r2426438 r2630781 75 75 $this->status = $json->status; 76 76 77 $this->sanitized = new WCAV_Address( 78 $json->street . ' ' . $json->streetnumber, 77 // VALID, SUSPECT, INVALID 78 if( isset( $json->addressline1 ) ) { 79 $street = $json->addressline1; 80 } else if( isset( $json->formattedaddress ) ) { 81 $addresslines = explode(",", $json->formattedaddress); 82 $street = trim($addresslines[0]); 83 } else $street = $address->get_street_address(); 84 $this->sanitized = new WCAV_Address( 85 $street, 79 86 $address->get_additional_address_info(), 80 $json->postalcode,81 $json->city,87 ( ! empty( $json->postalcode ) ) ? $json->postalcode : $address->get_postal_code(), 88 ( ! empty( $json->city ) ) ? $json->city : $address->get_city(), 82 89 ( ! empty( $json->state ) ) ? $json->state : '', 83 $json->country90 ( ! empty( $json->country ) ) ? $json->country : $address->get_country_code() 84 91 ); 85 92 86 93 // Set admin notice, if the key is invalid. 87 94 if ( 'API_KEY_INVALID_OR_DEPLETED' === $json->status ) { -
woo-address-validator/tags/2.7/woocommerce-address-validator.php
r2585480 r2630781 4 4 * Plugin URI: https://www.address-validator.net/ 5 5 * Description: Validate billing and shipping addresses in WooCommerce. 6 * Version: 2. 66 * Version: 2.7 7 7 * Author: Byteplant 8 8 * Author URI: https://www.address-validator.net/ -
woo-address-validator/trunk/readme.txt
r2585480 r2630781 3 3 Tags: woocommerce, validation, address, address validation, billing, shipping, delivery, billing address, shipping address, checkout 4 4 Requires at least: 3.0.1 5 Tested up to: 5.8 6 Stable tag: 2. 65 Tested up to: 5.8.2 6 Stable tag: 2.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
woo-address-validator/trunk/src/API/Validator.php
r2426438 r2630781 75 75 $this->status = $json->status; 76 76 77 $this->sanitized = new WCAV_Address( 78 $json->street . ' ' . $json->streetnumber, 77 // VALID, SUSPECT, INVALID 78 if( isset( $json->addressline1 ) ) { 79 $street = $json->addressline1; 80 } else if( isset( $json->formattedaddress ) ) { 81 $addresslines = explode(",", $json->formattedaddress); 82 $street = trim($addresslines[0]); 83 } else $street = $address->get_street_address(); 84 $this->sanitized = new WCAV_Address( 85 $street, 79 86 $address->get_additional_address_info(), 80 $json->postalcode,81 $json->city,87 ( ! empty( $json->postalcode ) ) ? $json->postalcode : $address->get_postal_code(), 88 ( ! empty( $json->city ) ) ? $json->city : $address->get_city(), 82 89 ( ! empty( $json->state ) ) ? $json->state : '', 83 $json->country90 ( ! empty( $json->country ) ) ? $json->country : $address->get_country_code() 84 91 ); 85 92 86 93 // Set admin notice, if the key is invalid. 87 94 if ( 'API_KEY_INVALID_OR_DEPLETED' === $json->status ) { -
woo-address-validator/trunk/woocommerce-address-validator.php
r2585480 r2630781 4 4 * Plugin URI: https://www.address-validator.net/ 5 5 * Description: Validate billing and shipping addresses in WooCommerce. 6 * Version: 2. 66 * Version: 2.7 7 7 * Author: Byteplant 8 8 * Author URI: https://www.address-validator.net/
Note: See TracChangeset
for help on using the changeset viewer.