Changeset 2718528
- Timestamp:
- 05/05/2022 09:54:35 AM (4 years ago)
- Location:
- woo-address-validator
- Files:
-
- 2 deleted
- 9 edited
- 8 copied
- 2 moved
-
tags/2.8 (copied) (copied from woo-address-validator/trunk)
-
tags/2.8/languages/woo-address-validator-de_DE.mo (moved) (moved from woo-address-validator/trunk/languages/woocommerce-address-validator-de_DE.mo)
-
tags/2.8/languages/woo-address-validator-de_DE.po (moved) (moved from woo-address-validator/trunk/languages/woocommerce-address-validator-de_DE.po) (7 diffs)
-
tags/2.8/languages/woocommerce-address-validator-de_DE.mo (deleted)
-
tags/2.8/languages/woocommerce-address-validator-de_DE.po (deleted)
-
tags/2.8/readme.txt (copied) (copied from woo-address-validator/trunk/readme.txt) (1 diff)
-
tags/2.8/src/API/API.php (copied) (copied from woo-address-validator/trunk/src/API/API.php)
-
tags/2.8/src/API/Validator.php (copied) (copied from woo-address-validator/trunk/src/API/Validator.php)
-
tags/2.8/src/Admin.php (copied) (copied from woo-address-validator/trunk/src/Admin.php) (4 diffs)
-
tags/2.8/src/Plugin.php (modified) (3 diffs)
-
tags/2.8/src/WC/WC.php (modified) (5 diffs)
-
tags/2.8/src/WC/WCAV_WC_Admin.php (modified) (2 diffs)
-
tags/2.8/woocommerce-address-validator.php (copied) (copied from woo-address-validator/trunk/woocommerce-address-validator.php) (1 diff)
-
trunk/languages/woo-address-validator-de_DE.mo (copied) (copied from woo-address-validator/trunk/languages/woocommerce-address-validator-de_DE.mo)
-
trunk/languages/woo-address-validator-de_DE.po (copied) (copied from woo-address-validator/trunk/languages/woocommerce-address-validator-de_DE.po) (7 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/Admin.php (modified) (4 diffs)
-
trunk/src/Plugin.php (modified) (3 diffs)
-
trunk/src/WC/WC.php (modified) (5 diffs)
-
trunk/src/WC/WCAV_WC_Admin.php (modified) (2 diffs)
-
trunk/woocommerce-address-validator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woo-address-validator/tags/2.8/languages/woo-address-validator-de_DE.po
r2426438 r2718528 2 2 msgstr "" 3 3 "Project-Id-Version: Woocommerce Address Validator\n" 4 "POT-Creation-Date: 202 0-11-26 10:32+0100\n"5 "PO-Revision-Date: 202 0-11-26 10:33+0100\n"4 "POT-Creation-Date: 2022-05-04 18:50+0200\n" 5 "PO-Revision-Date: 2022-05-04 18:52+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 2.4.2\n"12 "X-Generator: Poedit 3.0.1\n" 13 13 "X-Poedit-KeywordsList: _;gettext;gettext_noop;esc_html_e;__;_e\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: src/Admin.php:14 017 #: src/Admin.php:146 18 18 msgid "Address Validator" 19 19 msgstr "Address Validator" 20 20 21 #: src/Admin.php:1 5721 #: src/Admin.php:163 22 22 msgid "An error occured." 23 23 msgstr "Ein Fehler ist aufgetreten." 24 24 25 #: src/Admin.php:1 58src/WC/WCAV_WC_Admin.php:9725 #: src/Admin.php:164 src/WC/WCAV_WC_Admin.php:97 26 26 msgid "API Result" 27 27 msgstr "API Ergebnis" 28 28 29 #: src/Admin.php:1 7829 #: src/Admin.php:184 30 30 msgid "Woocommerce Address Validator" 31 31 msgstr "Woocommerce Address Validator" 32 32 33 #: src/Admin.php:18 133 #: src/Admin.php:187 34 34 msgid "" 35 35 "It looks like your API key is invalid or depleted. Please check your key and " … … 39 39 "API Key prüfen und aktualisieren." 40 40 41 #: src/Admin.php:18 241 #: src/Admin.php:188 42 42 #, php-format 43 43 msgid "" … … 47 47 "einloggen." 48 48 49 #: src/Admin.php:19 149 #: src/Admin.php:197 50 50 msgid "API Key" 51 51 msgstr "API Key" 52 52 53 #: src/Admin.php:199 53 #: src/Admin.php:205 54 msgid "Allow INVALID Addresses" 55 msgstr "Ungültige Adressen zulassen" 56 57 #: src/Admin.php:213 54 58 msgid "Update" 55 59 msgstr "Aktualisieren" 56 60 57 #: src/Admin.php:205 61 #: src/Admin.php:219 62 msgid "" 63 "Allow INVALID Addresses will prompt the user to check an address that could " 64 "not be validated, and allow them to continue (this feature was contributed " 65 "by \"Simply Charlotte Mason\" --- https://simplycharlottemason.com)." 66 msgstr "" 67 "Ungültige Adressen zulassen fordert den Benutzer auf, eine Adresse zu " 68 "überprüfen, die nicht validiert werden konnte, und erlaubt dann die " 69 "Fortsetzung des Checkouts (diese Funktion wurde von \"Simply Charlotte Mason" 70 "\" --- https://simplycharlottemason.com beigetragen)." 71 72 #: src/Admin.php:224 58 73 msgid "" 59 74 "With Address-Validator you can easily verify any national or international " … … 66 81 "Kunden zu erhalten." 67 82 68 #: src/Admin.php:2 1283 #: src/Admin.php:231 69 84 #, php-format 70 85 msgid "" … … 75 90 "625 kostenlosen Credits." 76 91 77 #: src/Admin.php:2 3492 #: src/Admin.php:253 78 93 msgid "Your Address-Validator API key is invalid or depleted." 79 94 msgstr "Der API Key ist ungültig oder die Credits sind verbraucht." 80 95 81 #: src/Admin.php:2 4196 #: src/Admin.php:260 82 97 #, php-format 83 98 msgid "" … … 85 100 msgstr "API Key <a href=\"%s\">auf der Einstellungsseite</a> prüfen/ändern." 86 101 87 #: src/WC/WC.php:2 16102 #: src/WC/WC.php:222 88 103 msgid "We have corrected your address. Please check the address again." 89 104 msgstr "" 90 105 "Wir haben die Adresse korrigiert. Bitte prüfen, ob die Angaben jetzt stimmen." 91 106 92 #: src/WC/WC.php:218 107 #: src/WC/WC.php:224 108 msgid "Your address could not be verified. Please check the address again." 109 msgstr "" 110 "Die Adresse konnte nicht verifiziert werden. Bitte überprüfen Sie die " 111 "Adresse erneut." 112 113 #: src/WC/WC.php:226 93 114 msgid "Please enter a valid address." 94 115 msgstr "Bitte eine gültige Adresse angeben." -
woo-address-validator/tags/2.8/readme.txt
r2630781 r2718528 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.26 Stable tag: 2. 75 Tested up to: 5.9.3 6 Stable tag: 2.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
woo-address-validator/tags/2.8/src/Admin.php
r2426438 r2718528 80 80 $this->validator = $validator; 81 81 82 $this->defaults = array( 83 'api-key' => '', 84 ); 82 $this->defaults = array( 83 'api-key' => '', 84 'allow-invalidaddr' => 0 85 ); 85 86 86 87 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); … … 91 92 && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST[ $this->action_name ] ) ), $this->action ) 92 93 ) { 93 $data = (array) wp_unslash( $_POST['wcav'] ); 94 $data = (array) wp_unslash( $_POST['wcav'] ); 95 // checkbox is missing in form data if unchecked, set to 0 96 if ( ! isset( $data['allow-invalidaddr'] ) ) { 97 $data[ 'allow-invalidaddr' ] = 0; 98 } 94 99 if ( $this->update( $data ) ) { 95 100 $url = admin_url( 'options-general.php' ); … … 194 199 <input type="text" name="wcav[api-key]" value="<?php echo esc_attr( $options['api-key'] ); ?>"> 195 200 </td> 196 </tr> 201 </tr> 202 <tr> 203 <th scope="row"> 204 <label for="allow-invalidaddr"><?php esc_html_e( 'Allow INVALID Addresses', 'woo-address-validator' ); ?></label> 205 </th> 206 <td> 207 <input type="checkbox" name="wcav[allow-invalidaddr]" value="1" <?php checked(1, $options['allow-invalidaddr'], true); ?> > 208 </td> 209 </tr> 197 210 </tbody> 198 211 </table> … … 201 214 <hr> 202 215 <p> 216 <?php 217 esc_html_e( 218 'Allow INVALID Addresses will prompt the user to check an address that could not be validated, and allow them to continue (this feature was contributed by "Simply Charlotte Mason" --- https://simplycharlottemason.com).', 'woo-address-validator' 219 ); 220 ?><br><br> 203 221 <?php 204 222 esc_html_e( -
woo-address-validator/tags/2.8/src/Plugin.php
r1625016 r2718528 44 44 * @var WCAV_Validator | NULL 45 45 */ 46 private $validator = NULL; 46 private $validator = NULL; 47 48 /** 49 * Allow INVALID addresses option. 50 * 51 * @var bool 52 */ 53 private $allow_invalidaddr = 0; 47 54 48 55 /** … … 57 64 if ( ! empty( $options['api-key'] ) ) { 58 65 $this->api_key = $options['api-key']; 66 } 67 if ( ! empty( $options['allow-invalidaddr'] ) ) { 68 $this->allow_invalidaddr = $options['allow-invalidaddr']; 59 69 } 60 70 … … 75 85 require_once( dirname( __FILE__ ) . '/WC/WC.php' ); 76 86 $wc = new WCAV_WC(); 77 $wc->setup( $this->plugin_path, $this->plugin_url, $this->validator );87 $wc->setup( $this->plugin_path, $this->plugin_url, $this->validator, $this->allow_invalidaddr ); 78 88 } 79 89 } -
woo-address-validator/tags/2.8/src/WC/WC.php
r1629762 r2718528 52 52 private $billing_status; 53 53 54 /** 55 * @var bool 56 */ 57 private $allow_invalidaddr; 58 54 59 /** 55 60 * Setup the admin. … … 59 64 * @param WCAV_Validator $validator The Validator. 60 65 */ 61 public function setup( $plugin_path, $plugin_url, WCAV_Validator $validator ) { 62 63 $this->plugin_path = $plugin_path; 64 $this->plugin_url = $plugin_url; 65 $this->validator = $validator; 66 public function setup( $plugin_path, $plugin_url, WCAV_Validator $validator, $allow_invalidaddr ) { 67 68 $this->plugin_path = $plugin_path; 69 $this->plugin_url = $plugin_url; 70 $this->validator = $validator; 71 $this->allow_invalidaddr = $allow_invalidaddr; 66 72 67 73 add_action( 'woocommerce_after_checkout_validation', array( $this, 'validate' ) ); … … 168 174 if ( ! $this->is_valid_billing && $is_first_round ) { 169 175 $this->wc_notice(); 170 if ( 'SUSPECT' === $this->validator->get_status() ) {176 if ( $this->allow_invalidaddr && 'INVALID' === $this->validator->get_status() || 'SUSPECT' === $this->validator->get_status() ) { 171 177 $set_cookie = TRUE; 172 178 $address = $this->validator->get_sanitized_address(); … … 190 196 if ( ! $this->is_valid_shipping && $is_first_round ) { 191 197 192 if ('SUSPECT' === $this->validator->get_status() ) {198 if ( $this->allow_invalidaddr && 'INVALID' === $this->validator->get_status() || 'SUSPECT' === $this->validator->get_status() ) { 193 199 $set_cookie = TRUE; 194 200 $address = $this->validator->get_sanitized_address(); … … 213 219 public function wc_notice() { 214 220 215 if ( 'SUSPECT' === strtoupper( $this->validator->get_status() ) ) { 216 $string = __( 'We have corrected your address. Please check the address again.', 'woo-address-validator' ); 217 } else { 218 $string = __( 'Please enter a valid address.', 'woo-address-validator' ); 219 } 221 if ( 'SUSPECT' === strtoupper( $this->validator->get_status() ) ) { 222 $string = __( 'We have corrected your address. Please check the address again.', 'woo-address-validator' ); 223 } elseif ( $this->allow_invalidaddr && 'INVALID' == strtoupper( $this->validator->get_status() ) ) { 224 $string = __( 'Your address could not be verified. Please check the address again.', 'woo-address-validator' ); 225 } else { 226 $string = __( 'Please enter a valid address.', 'woo-address-validator' ); 227 } 220 228 wc_add_notice( $string, 'error' ); 221 229 } -
woo-address-validator/tags/2.8/src/WC/WCAV_WC_Admin.php
r1629762 r2718528 19 19 20 20 /** 21 * Display the status of the billing ad ress of an order.21 * Display the status of the billing address of an order. 22 22 * 23 23 * @param $order … … 38 38 39 39 /** 40 * Display the status of the s tatus adress of an order.40 * Display the status of the shipping address of an order. 41 41 * 42 42 * @param $order -
woo-address-validator/tags/2.8/woocommerce-address-validator.php
r2630781 r2718528 4 4 * Plugin URI: https://www.address-validator.net/ 5 5 * Description: Validate billing and shipping addresses in WooCommerce. 6 * Version: 2. 76 * Version: 2.8 7 7 * Author: Byteplant 8 8 * Author URI: https://www.address-validator.net/ -
woo-address-validator/trunk/languages/woo-address-validator-de_DE.po
r2718527 r2718528 2 2 msgstr "" 3 3 "Project-Id-Version: Woocommerce Address Validator\n" 4 "POT-Creation-Date: 202 0-11-26 10:32+0100\n"5 "PO-Revision-Date: 202 0-11-26 10:33+0100\n"4 "POT-Creation-Date: 2022-05-04 18:50+0200\n" 5 "PO-Revision-Date: 2022-05-04 18:52+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 2.4.2\n"12 "X-Generator: Poedit 3.0.1\n" 13 13 "X-Poedit-KeywordsList: _;gettext;gettext_noop;esc_html_e;__;_e\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: src/Admin.php:14 017 #: src/Admin.php:146 18 18 msgid "Address Validator" 19 19 msgstr "Address Validator" 20 20 21 #: src/Admin.php:1 5721 #: src/Admin.php:163 22 22 msgid "An error occured." 23 23 msgstr "Ein Fehler ist aufgetreten." 24 24 25 #: src/Admin.php:1 58src/WC/WCAV_WC_Admin.php:9725 #: src/Admin.php:164 src/WC/WCAV_WC_Admin.php:97 26 26 msgid "API Result" 27 27 msgstr "API Ergebnis" 28 28 29 #: src/Admin.php:1 7829 #: src/Admin.php:184 30 30 msgid "Woocommerce Address Validator" 31 31 msgstr "Woocommerce Address Validator" 32 32 33 #: src/Admin.php:18 133 #: src/Admin.php:187 34 34 msgid "" 35 35 "It looks like your API key is invalid or depleted. Please check your key and " … … 39 39 "API Key prüfen und aktualisieren." 40 40 41 #: src/Admin.php:18 241 #: src/Admin.php:188 42 42 #, php-format 43 43 msgid "" … … 47 47 "einloggen." 48 48 49 #: src/Admin.php:19 149 #: src/Admin.php:197 50 50 msgid "API Key" 51 51 msgstr "API Key" 52 52 53 #: src/Admin.php:199 53 #: src/Admin.php:205 54 msgid "Allow INVALID Addresses" 55 msgstr "Ungültige Adressen zulassen" 56 57 #: src/Admin.php:213 54 58 msgid "Update" 55 59 msgstr "Aktualisieren" 56 60 57 #: src/Admin.php:205 61 #: src/Admin.php:219 62 msgid "" 63 "Allow INVALID Addresses will prompt the user to check an address that could " 64 "not be validated, and allow them to continue (this feature was contributed " 65 "by \"Simply Charlotte Mason\" --- https://simplycharlottemason.com)." 66 msgstr "" 67 "Ungültige Adressen zulassen fordert den Benutzer auf, eine Adresse zu " 68 "überprüfen, die nicht validiert werden konnte, und erlaubt dann die " 69 "Fortsetzung des Checkouts (diese Funktion wurde von \"Simply Charlotte Mason" 70 "\" --- https://simplycharlottemason.com beigetragen)." 71 72 #: src/Admin.php:224 58 73 msgid "" 59 74 "With Address-Validator you can easily verify any national or international " … … 66 81 "Kunden zu erhalten." 67 82 68 #: src/Admin.php:2 1283 #: src/Admin.php:231 69 84 #, php-format 70 85 msgid "" … … 75 90 "625 kostenlosen Credits." 76 91 77 #: src/Admin.php:2 3492 #: src/Admin.php:253 78 93 msgid "Your Address-Validator API key is invalid or depleted." 79 94 msgstr "Der API Key ist ungültig oder die Credits sind verbraucht." 80 95 81 #: src/Admin.php:2 4196 #: src/Admin.php:260 82 97 #, php-format 83 98 msgid "" … … 85 100 msgstr "API Key <a href=\"%s\">auf der Einstellungsseite</a> prüfen/ändern." 86 101 87 #: src/WC/WC.php:2 16102 #: src/WC/WC.php:222 88 103 msgid "We have corrected your address. Please check the address again." 89 104 msgstr "" 90 105 "Wir haben die Adresse korrigiert. Bitte prüfen, ob die Angaben jetzt stimmen." 91 106 92 #: src/WC/WC.php:218 107 #: src/WC/WC.php:224 108 msgid "Your address could not be verified. Please check the address again." 109 msgstr "" 110 "Die Adresse konnte nicht verifiziert werden. Bitte überprüfen Sie die " 111 "Adresse erneut." 112 113 #: src/WC/WC.php:226 93 114 msgid "Please enter a valid address." 94 115 msgstr "Bitte eine gültige Adresse angeben." -
woo-address-validator/trunk/readme.txt
r2630781 r2718528 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.26 Stable tag: 2. 75 Tested up to: 5.9.3 6 Stable tag: 2.8 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
woo-address-validator/trunk/src/Admin.php
r2426438 r2718528 80 80 $this->validator = $validator; 81 81 82 $this->defaults = array( 83 'api-key' => '', 84 ); 82 $this->defaults = array( 83 'api-key' => '', 84 'allow-invalidaddr' => 0 85 ); 85 86 86 87 add_action( 'admin_menu', array( $this, 'admin_menu' ) ); … … 91 92 && wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST[ $this->action_name ] ) ), $this->action ) 92 93 ) { 93 $data = (array) wp_unslash( $_POST['wcav'] ); 94 $data = (array) wp_unslash( $_POST['wcav'] ); 95 // checkbox is missing in form data if unchecked, set to 0 96 if ( ! isset( $data['allow-invalidaddr'] ) ) { 97 $data[ 'allow-invalidaddr' ] = 0; 98 } 94 99 if ( $this->update( $data ) ) { 95 100 $url = admin_url( 'options-general.php' ); … … 194 199 <input type="text" name="wcav[api-key]" value="<?php echo esc_attr( $options['api-key'] ); ?>"> 195 200 </td> 196 </tr> 201 </tr> 202 <tr> 203 <th scope="row"> 204 <label for="allow-invalidaddr"><?php esc_html_e( 'Allow INVALID Addresses', 'woo-address-validator' ); ?></label> 205 </th> 206 <td> 207 <input type="checkbox" name="wcav[allow-invalidaddr]" value="1" <?php checked(1, $options['allow-invalidaddr'], true); ?> > 208 </td> 209 </tr> 197 210 </tbody> 198 211 </table> … … 201 214 <hr> 202 215 <p> 216 <?php 217 esc_html_e( 218 'Allow INVALID Addresses will prompt the user to check an address that could not be validated, and allow them to continue (this feature was contributed by "Simply Charlotte Mason" --- https://simplycharlottemason.com).', 'woo-address-validator' 219 ); 220 ?><br><br> 203 221 <?php 204 222 esc_html_e( -
woo-address-validator/trunk/src/Plugin.php
r1625016 r2718528 44 44 * @var WCAV_Validator | NULL 45 45 */ 46 private $validator = NULL; 46 private $validator = NULL; 47 48 /** 49 * Allow INVALID addresses option. 50 * 51 * @var bool 52 */ 53 private $allow_invalidaddr = 0; 47 54 48 55 /** … … 57 64 if ( ! empty( $options['api-key'] ) ) { 58 65 $this->api_key = $options['api-key']; 66 } 67 if ( ! empty( $options['allow-invalidaddr'] ) ) { 68 $this->allow_invalidaddr = $options['allow-invalidaddr']; 59 69 } 60 70 … … 75 85 require_once( dirname( __FILE__ ) . '/WC/WC.php' ); 76 86 $wc = new WCAV_WC(); 77 $wc->setup( $this->plugin_path, $this->plugin_url, $this->validator );87 $wc->setup( $this->plugin_path, $this->plugin_url, $this->validator, $this->allow_invalidaddr ); 78 88 } 79 89 } -
woo-address-validator/trunk/src/WC/WC.php
r1629762 r2718528 52 52 private $billing_status; 53 53 54 /** 55 * @var bool 56 */ 57 private $allow_invalidaddr; 58 54 59 /** 55 60 * Setup the admin. … … 59 64 * @param WCAV_Validator $validator The Validator. 60 65 */ 61 public function setup( $plugin_path, $plugin_url, WCAV_Validator $validator ) { 62 63 $this->plugin_path = $plugin_path; 64 $this->plugin_url = $plugin_url; 65 $this->validator = $validator; 66 public function setup( $plugin_path, $plugin_url, WCAV_Validator $validator, $allow_invalidaddr ) { 67 68 $this->plugin_path = $plugin_path; 69 $this->plugin_url = $plugin_url; 70 $this->validator = $validator; 71 $this->allow_invalidaddr = $allow_invalidaddr; 66 72 67 73 add_action( 'woocommerce_after_checkout_validation', array( $this, 'validate' ) ); … … 168 174 if ( ! $this->is_valid_billing && $is_first_round ) { 169 175 $this->wc_notice(); 170 if ( 'SUSPECT' === $this->validator->get_status() ) {176 if ( $this->allow_invalidaddr && 'INVALID' === $this->validator->get_status() || 'SUSPECT' === $this->validator->get_status() ) { 171 177 $set_cookie = TRUE; 172 178 $address = $this->validator->get_sanitized_address(); … … 190 196 if ( ! $this->is_valid_shipping && $is_first_round ) { 191 197 192 if ('SUSPECT' === $this->validator->get_status() ) {198 if ( $this->allow_invalidaddr && 'INVALID' === $this->validator->get_status() || 'SUSPECT' === $this->validator->get_status() ) { 193 199 $set_cookie = TRUE; 194 200 $address = $this->validator->get_sanitized_address(); … … 213 219 public function wc_notice() { 214 220 215 if ( 'SUSPECT' === strtoupper( $this->validator->get_status() ) ) { 216 $string = __( 'We have corrected your address. Please check the address again.', 'woo-address-validator' ); 217 } else { 218 $string = __( 'Please enter a valid address.', 'woo-address-validator' ); 219 } 221 if ( 'SUSPECT' === strtoupper( $this->validator->get_status() ) ) { 222 $string = __( 'We have corrected your address. Please check the address again.', 'woo-address-validator' ); 223 } elseif ( $this->allow_invalidaddr && 'INVALID' == strtoupper( $this->validator->get_status() ) ) { 224 $string = __( 'Your address could not be verified. Please check the address again.', 'woo-address-validator' ); 225 } else { 226 $string = __( 'Please enter a valid address.', 'woo-address-validator' ); 227 } 220 228 wc_add_notice( $string, 'error' ); 221 229 } -
woo-address-validator/trunk/src/WC/WCAV_WC_Admin.php
r1629762 r2718528 19 19 20 20 /** 21 * Display the status of the billing ad ress of an order.21 * Display the status of the billing address of an order. 22 22 * 23 23 * @param $order … … 38 38 39 39 /** 40 * Display the status of the s tatus adress of an order.40 * Display the status of the shipping address of an order. 41 41 * 42 42 * @param $order -
woo-address-validator/trunk/woocommerce-address-validator.php
r2630781 r2718528 4 4 * Plugin URI: https://www.address-validator.net/ 5 5 * Description: Validate billing and shipping addresses in WooCommerce. 6 * Version: 2. 76 * Version: 2.8 7 7 * Author: Byteplant 8 8 * Author URI: https://www.address-validator.net/
Note: See TracChangeset
for help on using the changeset viewer.