Skip to content

Commit

Permalink
🐛 FIX: Don't validate without billing country #27
Browse files Browse the repository at this point in the history
  • Loading branch information
vyskoczilova committed Dec 2, 2020
1 parent c43c877 commit 288ef90
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions includes/filters-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ function woolab_icdic_billing_fields( $fields, $country ) {
// check field on checkout
function woolab_icdic_checkout_field_process() {

// Bail if form not fully filled.
if (!isset($_POST['billing_country'])) {
return false;
}

$country = $_POST['billing_country'];

// BUSINESS ID
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ Either post it on [GitHub](https://github.com/vyskoczilova/kybernaut-ic-dic) or

== Changelog ==

= 1.5.4 (2020-12-02 ) =
* Fix: Don't validate without billing country [#27](https://github.com/vyskoczilova/kybernaut-ic-dic/issues/27) - thanks to [@morvy](https://github.com/morvy)

= 1.5.3 (2020-11-09) =
* Compatibility with [WooCommerce SuperFaktura](https://wordpress.org/plugins/woocommerce-superfaktura/)
* Compatibility [Kybernaut Mailstep](https://kybernaut.cz/pluginy/kybernaut-mailstep/)
Expand All @@ -138,7 +141,7 @@ Either post it on [GitHub](https://github.com/vyskoczilova/kybernaut-ic-dic) or
* Add custom filter for disabling required DIC when ICO filled for SK `add_filter( 'woolab_icdic_sk_required_ic_and_dic', '__return_false' );` - [#26](https://github.com/vyskoczilova/kybernaut-ic-dic/issues/26)

= 1.5.0 (2020-07-20) =
* Fix: Slovak DIC validation fix, [#22](https://github.com/vyskoczilova/kybernaut-ic-dic/pull/22)- thanks to [@morvy](https://github.com/morvy)
* Fix: Slovak DIC validation fix, [#22](https://github.com/vyskoczilova/kybernaut-ic-dic/pull/22) - thanks to [@morvy](https://github.com/morvy)
* Feature: Show/Hide toggle functionality, [#24](https://github.com/vyskoczilova/kybernaut-ic-dic/pull/24) - [@morvy](https://github.com/morvy)
* Maintenance: Update language files and dependencies

Expand Down
6 changes: 3 additions & 3 deletions woolab-ic-dic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Kybernaut IC DIC
Plugin URI: https://kybernaut.cz/pluginy/kybernaut-ic-dic
Description: Adds Czech Company & VAT numbers (IČO & DIČ) to WooCommerce billing fields and verifies if data are correct.
Version: 1.5.3
Version: 1.5.4
Author: Karolína Vyskočilová
Author URI: https://kybernaut.cz
Text Domain: woolab-ic-dic
Expand All @@ -13,7 +13,7 @@
Donate link: https://paypal.me/KarolinaVyskocilova/
Requires PHP: 5.6
WC requires at least: 3.5.0
WC tested up to: 4.6.2
WC tested up to: 4.7.1
Copyright: © 2009-2020 Karolína Vyskočilová.
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -27,7 +27,7 @@
define( 'WOOLAB_IC_DIC_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
define( 'WOOLAB_IC_DIC_ABSPATH', dirname( __FILE__ ) . '/' );
define( 'WOOLAB_IC_DIC_URL', plugin_dir_url( __FILE__ ) );
define( 'WOOLAB_IC_DIC_VERSION', '1.5.3' );
define( 'WOOLAB_IC_DIC_VERSION', '1.5.4' );

// Check if WooCommerce active
function woolab_icdic_init() {
Expand Down

0 comments on commit 288ef90

Please sign in to comment.