From 29ffb07d2637f816c6c05197bf0d1e3aa1b22464 Mon Sep 17 00:00:00 2001 From: kousikmukherjee Date: Mon, 29 Jul 2024 11:44:17 +0530 Subject: [PATCH] v2.12.7 --- eu-vat-for-woocommerce.php | 4 ++-- .../alg-wc-eu-vat-functions-validation.php | 6 ++++-- langs/eu-vat-for-woocommerce.pot | 20 +++++++++---------- readme.txt | 5 ++++- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/eu-vat-for-woocommerce.php b/eu-vat-for-woocommerce.php index 263746f..3a5c156 100644 --- a/eu-vat-for-woocommerce.php +++ b/eu-vat-for-woocommerce.php @@ -3,7 +3,7 @@ Plugin Name: EU/UK VAT for WooCommerce Plugin URI: https://wpfactory.com/item/eu-vat-for-woocommerce/ Description: Manage EU VAT in WooCommerce. Beautifully. -Version: 2.12.6 +Version: 2.12.7 Author: WPFactory Author URI: https://wpfactory.com/ Text Domain: eu-vat-for-woocommerce @@ -33,7 +33,7 @@ final class Alg_WC_EU_VAT { * @var string * @since 1.0.0 */ - public $version = '2.12.6'; + public $version = '2.12.7'; public $core = null; public $settings = array(); diff --git a/includes/functions/alg-wc-eu-vat-functions-validation.php b/includes/functions/alg-wc-eu-vat-functions-validation.php index 11951d6..3feb97e 100644 --- a/includes/functions/alg-wc-eu-vat-functions-validation.php +++ b/includes/functions/alg-wc-eu-vat-functions-validation.php @@ -2,7 +2,7 @@ /** * EU VAT for WooCommerce - Functions - Validation * - * @version 2.12.6 + * @version 2.12.7 * @since 1.0.0 * @author WPFactory */ @@ -150,7 +150,7 @@ function alg_wc_eu_vat_validate_vat_no_soap( $country_code, $vat_number, $billin /** * alg_wc_eu_vat_validate_vat_soap. * - * @version 2.12.6 + * @version 2.12.7 * @since 1.0.0 * @return mixed: bool on successful checking, null otherwise */ @@ -259,6 +259,8 @@ function alg_wc_eu_vat_validate_vat_soap( $country_code, $vat_number, $billing_c } } + + return null; } } } diff --git a/langs/eu-vat-for-woocommerce.pot b/langs/eu-vat-for-woocommerce.pot index e36d904..fa86cf7 100644 --- a/langs/eu-vat-for-woocommerce.pot +++ b/langs/eu-vat-for-woocommerce.pot @@ -2,14 +2,14 @@ # This file is distributed under the GNU General Public License v3.0. msgid "" msgstr "" -"Project-Id-Version: eu-vat-for-woocommerce 2.12.6\n" +"Project-Id-Version: eu-vat-for-woocommerce 2.12.7\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/eu-vat-for-woocommerce\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-07-28T18:39:47+02:00\n" +"POT-Creation-Date: 2024-07-29T08:13:07+02:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: eu-vat-for-woocommerce\n" @@ -289,34 +289,34 @@ msgstr "" #: includes/functions/alg-wc-eu-vat-functions-validation.php:65 #: includes/functions/alg-wc-eu-vat-functions-validation.php:78 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:385 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:397 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:387 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:399 msgid "Error: %s is disabled" msgstr "" #: includes/functions/alg-wc-eu-vat-functions-validation.php:86 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:406 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:408 msgid "Error: No response" msgstr "" #: includes/functions/alg-wc-eu-vat-functions-validation.php:94 #: includes/functions/alg-wc-eu-vat-functions-validation.php:139 #: includes/functions/alg-wc-eu-vat-functions-validation.php:212 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:338 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:461 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:340 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:463 msgid "Success: VAT ID is valid" msgstr "" #: includes/functions/alg-wc-eu-vat-functions-validation.php:102 #: includes/functions/alg-wc-eu-vat-functions-validation.php:135 #: includes/functions/alg-wc-eu-vat-functions-validation.php:204 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:457 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:459 msgid "Error: VAT ID not valid" msgstr "" #: includes/functions/alg-wc-eu-vat-functions-validation.php:132 #: includes/functions/alg-wc-eu-vat-functions-validation.php:197 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:450 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:452 msgid "Error: Company name does not match (%s)" msgstr "" @@ -336,7 +336,7 @@ msgstr "" msgid "Error: SoapFault: %s" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:326 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:328 msgid "Success: VAT ID valid. Matched with prevalidated VAT numbers." msgstr "" diff --git a/readme.txt b/readme.txt index d90617e..c86eeab 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu Tags: EU VAT, UK VAT, tax, vat validation, VAT Requires at least: 6.1 Tested up to: 6.5 -Stable tag: 2.12.6 +Stable tag: 2.12.7 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -290,6 +290,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S == Changelog == += 2.12.7 - 30/07/2024 = +* Fix - Accept VAT when VIES is down (extra catch soapFault). + = 2.12.6 - 29/07/2024 = * WC tested up to: 9.1 * Accept VAT when VIES is down (extra catch soapFault).