diff --git a/Vipps.class.php b/Vipps.class.php index 18c27f96..8dfa7917 100644 --- a/Vipps.class.php +++ b/Vipps.class.php @@ -1087,7 +1087,7 @@ public function vipps_shipping_details_callback() { $methods[$key]= $method; } $chosen = apply_filters('woo_vipps_default_shipping_method', $chosen, $shipping_methods, $order); - if (!isset($methods[$chosen])) { + if ($chosen && !isset($methods[$chosen])) { $chosen = null; // Actually that isn't available $this->log(__("Unavailable shipping method set as default in the Vipps Express Checkout shipping callback - check the 'woo_vipps_default_shipping_method' filter",'debug')); } diff --git a/readme.txt b/readme.txt index aa10b2f8..a7f3e697 100644 --- a/readme.txt +++ b/readme.txt @@ -193,6 +193,9 @@ From version 1.1.13 you can also modify the javascript using the new WP hooks li == Changelog == += 2020.03.03 version 1.4.2 = + * Tiny change to avoid logging non-errors if no shipping method has been chosen at all + = 2020.02.25 version 1.4.1 = * Bugfix: The template chooser mechanism caused WP_DEBUG to print out error messages if the option wasn't set. diff --git a/woo-vipps.php b/woo-vipps.php index 23b23ac2..91496010 100644 --- a/woo-vipps.php +++ b/woo-vipps.php @@ -7,7 +7,7 @@ Author URI: https://www.wp-hosting.no/ Text-domain: woo-vipps Domain Path: /languages - Version: 1.4.1 + Version: 1.4.2 Requires at least: 4.7 Tested up to: 5.3.2