Skip to content
Snippets Groups Projects
Commit ddaba648 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V1.1.1: Fix for PHP 5.3

parent c6103172
No related branches found
No related tags found
No related merge requests found
BASE=shipping-by-rules BASE=shipping-by-rules
PLATTFORM=woocommerce PLATTFORM=woocommerce
VENDOR=opentools VENDOR=opentools
VERSION=1.1 VERSION=1.1.1
DIR = $(shell pwd) DIR = $(shell pwd)
SVNDIR=wordpress-plugin-svn SVNDIR=wordpress-plugin-svn
......
...@@ -179,7 +179,8 @@ class Shipping_Rules_post_type { ...@@ -179,7 +179,8 @@ class Shipping_Rules_post_type {
* @since 1.0.0 * @since 1.0.0
*/ */
public function render_shipping_upgrade($post, $metabox) { 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) { public function render_shipping_rulesets($post, $metabox) {
......
...@@ -3,7 +3,7 @@ Contributors: opentools ...@@ -3,7 +3,7 @@ Contributors: opentools
Tags: WooCommerce, Shipment, Shipping, Rules shipping Tags: WooCommerce, Shipment, Shipping, Rules shipping
Requires at least: 4.0 Requires at least: 4.0
Tested up to: 4.4.1 Tested up to: 4.4.1
Stable tag: 1.1 Stable tag: 1.1.1
License: GPLv3 or later License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html License URI: http://www.gnu.org/licenses/gpl.html
......
File added
File added
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Advanced Shipping By Rules * Plugin Name: WooCommerce Advanced Shipping By Rules
* Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html * 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 * 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: Open Tools, Reinhold Kainhofer
* Author URI: http://open-tools.net * Author URI: http://open-tools.net
* Text Domain: woocommerce-advanced-shipping-by-rules * Text Domain: woocommerce-advanced-shipping-by-rules
...@@ -66,7 +66,7 @@ function otsr_addAccessCheckArg($downloadurl) { ...@@ -66,7 +66,7 @@ function otsr_addAccessCheckArg($downloadurl) {
* Main Shipping by Rules class, add filters and handling all other files. * Main Shipping by Rules class, add filters and handling all other files.
* *
* @class WooCommerce_Shipping_By_Rules_Advanced * @class WooCommerce_Shipping_By_Rules_Advanced
* @version 1.0.0 * @version 1.1.1
* @author Reinhold Kainhofer * @author Reinhold Kainhofer
*/ */
class WooCommerce_Shipping_By_Rules_Advanced { class WooCommerce_Shipping_By_Rules_Advanced {
...@@ -76,7 +76,7 @@ class WooCommerce_Shipping_By_Rules_Advanced { ...@@ -76,7 +76,7 @@ class WooCommerce_Shipping_By_Rules_Advanced {
* @since 1.0.0 * @since 1.0.0
* @var string $version Plugin version number. * @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 { ...@@ -186,7 +186,7 @@ class WooCommerce_Shipping_By_Rules_Advanced {
*/ */
public function update() { 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 // Stop current version is up to date
if ( $db_version >= $this->version ) : if ( $db_version >= $this->version ) :
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Plugin Name: WooCommerce Shipping By Rules * Plugin Name: WooCommerce Shipping By Rules
* Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html * 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. * 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: Open Tools, Reinhold Kainhofer
* Author URI: http://open-tools.net * Author URI: http://open-tools.net
* Text Domain: woocommerce-shipping-by-rules * Text Domain: woocommerce-shipping-by-rules
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* Main Shipping by Rules class, add filters and handling all other files. * Main Shipping by Rules class, add filters and handling all other files.
* *
* @class WooCommerce_Shipping_By_Rules * @class WooCommerce_Shipping_By_Rules
* @version 1.0.0 * @version 1.1.1
* @author Reinhold Kainhofer * @author Reinhold Kainhofer
*/ */
class WooCommerce_Shipping_By_Rules { class WooCommerce_Shipping_By_Rules {
...@@ -49,7 +49,7 @@ class WooCommerce_Shipping_By_Rules { ...@@ -49,7 +49,7 @@ class WooCommerce_Shipping_By_Rules {
* @since 1.0.0 * @since 1.0.0
* @var string $version Plugin version number. * @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 { ...@@ -159,7 +159,7 @@ class WooCommerce_Shipping_By_Rules {
*/ */
public function update() { 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 // Stop current version is up to date
if ( $db_version >= $this->version ) : if ( $db_version >= $this->version ) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment