Commit e5d3a2ac authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

Fix warnings, update to latest versions

parent d3002c44
......@@ -376,7 +376,8 @@ class OpenToolsOrdernumbersBasic {
* Handle the "Assign a new order number" action from the edit order page in the backend
*/
public function order_action_assign_new_ordernumber( $order ) {
$number = $this->generateNumber($order->get_id(), $order, 'ordernumber');
$wc_ver3 = !version_compare(WC_VERSION, '2.7', '<');
$number = $this->generateNumber($wc_ver3?$order->get_id():$order->id, $order, 'ordernumber');
}
/**
......
......@@ -1409,7 +1409,7 @@ class Parsedown
if (isset($Element['handler']))
{
$markup .= $this->$Element['handler']($Element['text']);
$markup .= $this->{$Element['handler']}($Element['text']);
}
else
{
......
......@@ -3,7 +3,7 @@ Plugin Name: Ordernumbers for WooCommerce
Contributors: opentools
Tags: WooCommerce, Order numbers, orders
Requires at least: 4.0
Tested up to: 4.8
Tested up to: 4.9.2
Stable tag: 1.4.3
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl.html
......
......@@ -11,7 +11,7 @@
* License: GPL2+
* Network: true
* WC requires at least: 2.2
* WC tested up to: 3.1
* WC tested up to: 3.2.6
*/
if ( ! defined( 'ABSPATH' ) ) {
......
......@@ -10,7 +10,7 @@
* License: GPL2+
* Network: true
* WC requires at least: 2.2
* WC tested up to: 3.1
* WC tested up to: 3.2.6
*/
if ( ! defined( 'ABSPATH' ) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment