diff --git a/Makefile b/Makefile index f3ca866ab7f2d7e45090558d54803c3412b78db4..17a051c17a29e864778a28abe7494bc71465f31d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BASE=shipping-by-rules PLATTFORM=woocommerce VENDOR=opentools -VERSION=1.1 +VERSION=1.1.1 DIR = $(shell pwd) SVNDIR=wordpress-plugin-svn diff --git a/includes/rules-shipping-post-type.php b/includes/rules-shipping-post-type.php index 045bda6d33d79f7813a562ed721749e3aa404d49..f4650b19579f0d35284b31ca9a519b362803489d 100644 --- a/includes/rules-shipping-post-type.php +++ b/includes/rules-shipping-post-type.php @@ -179,7 +179,8 @@ class Shipping_Rules_post_type { * @since 1.0.0 */ public function render_shipping_upgrade($post, $metabox) { - $this->helper->printUpgradeNagBox($this->helper->getUpgradeNagSettings()['opentools_shippingbyrules_upgrade']); + $nag_settings = $this->helper->getUpgradeNagSettings(); + $this->helper->printUpgradeNagBox($nag_settings['opentools_shippingbyrules_upgrade']); } public function render_shipping_rulesets($post, $metabox) { diff --git a/readme.txt b/readme.txt index 122db4c566c7fef3e56fa1f1c63654d1db18b7ef..482bbbfc86d08f4f6f5ee00b438a700f301b979d 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: opentools Tags: WooCommerce, Shipment, Shipping, Rules shipping Requires at least: 4.0 Tested up to: 4.4.1 -Stable tag: 1.1 +Stable tag: 1.1.1 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl.html diff --git a/releases/opentools-woocommerce-advanced-shipping-by-rules_v1.1.1.zip b/releases/opentools-woocommerce-advanced-shipping-by-rules_v1.1.1.zip new file mode 100644 index 0000000000000000000000000000000000000000..f256e525141653a2e53c804d4eaa4b75c460a20d Binary files /dev/null and b/releases/opentools-woocommerce-advanced-shipping-by-rules_v1.1.1.zip differ diff --git a/releases/opentools-woocommerce-shipping-by-rules_v1.1.1.zip b/releases/opentools-woocommerce-shipping-by-rules_v1.1.1.zip new file mode 100644 index 0000000000000000000000000000000000000000..af41009e15252f963878fe0082695aa687f01470 Binary files /dev/null and b/releases/opentools-woocommerce-shipping-by-rules_v1.1.1.zip differ diff --git a/woocommerce-advanced-shipping-by-rules.php b/woocommerce-advanced-shipping-by-rules.php index 05aa0bcd00751aaa598946bc9a62d5e19c41d7f6..d3c3051ac1370970556027e468148409b25d578e 100644 --- a/woocommerce-advanced-shipping-by-rules.php +++ b/woocommerce-advanced-shipping-by-rules.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Advanced Shipping By Rules * Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html * Description: Define Shipping cost by very general and flexible (text-based) rules. The advanced version also provides mathematical expressions and functions - * Version: 1.1.0 + * Version: 1.1.1 * Author: Open Tools, Reinhold Kainhofer * Author URI: http://open-tools.net * Text Domain: woocommerce-advanced-shipping-by-rules @@ -66,7 +66,7 @@ function otsr_addAccessCheckArg($downloadurl) { * Main Shipping by Rules class, add filters and handling all other files. * * @class WooCommerce_Shipping_By_Rules_Advanced - * @version 1.0.0 + * @version 1.1.1 * @author Reinhold Kainhofer */ class WooCommerce_Shipping_By_Rules_Advanced { @@ -76,7 +76,7 @@ class WooCommerce_Shipping_By_Rules_Advanced { * @since 1.0.0 * @var string $version Plugin version number. */ - public $version = '1.0.0'; + public $version = '1.1.1'; /** @@ -186,7 +186,7 @@ class WooCommerce_Shipping_By_Rules_Advanced { */ public function update() { - $db_version = get_option( 'shipping_by_rules_plugin_version', '1.0.0' ); + $db_version = get_option( 'shipping_by_rules_plugin_version', $this->version ); // Stop current version is up to date if ( $db_version >= $this->version ) : diff --git a/woocommerce-shipping-by-rules.php b/woocommerce-shipping-by-rules.php index 53b4e25611b455636649323c82bcd385f1d0c54f..f477f4ad00d1fa5980f1a38e45ce8a624722b67d 100644 --- a/woocommerce-shipping-by-rules.php +++ b/woocommerce-shipping-by-rules.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Shipping By Rules * Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html * Description: Define Shipping cost by very general and flexible (text-based) rules. - * Version: 1.1.0 + * Version: 1.1.1 * Author: Open Tools, Reinhold Kainhofer * Author URI: http://open-tools.net * Text Domain: woocommerce-shipping-by-rules @@ -39,7 +39,7 @@ * Main Shipping by Rules class, add filters and handling all other files. * * @class WooCommerce_Shipping_By_Rules - * @version 1.0.0 + * @version 1.1.1 * @author Reinhold Kainhofer */ class WooCommerce_Shipping_By_Rules { @@ -49,7 +49,7 @@ class WooCommerce_Shipping_By_Rules { * @since 1.0.0 * @var string $version Plugin version number. */ - public $version = '1.0.0'; + public $version = '1.1.1'; /** @@ -159,7 +159,7 @@ class WooCommerce_Shipping_By_Rules { */ public function update() { - $db_version = get_option( 'shipping_by_rules_plugin_version', '1.0.0' ); + $db_version = get_option( 'shipping_by_rules_plugin_version', $this->version ); // Stop current version is up to date if ( $db_version >= $this->version ) :