Version Description
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.5
- aftership-backward-compatibility.php +21 -0
- aftership-functions.php +0 -21
- aftership.php +2 -2
- readme.txt +7 -1
aftership-backward-compatibility.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Get woo order ID
|
4 |
+
*/
|
5 |
+
if ( ! function_exists( 'get_order_id' ) ) {
|
6 |
+
function get_order_id($order) {
|
7 |
+
return (method_exists($order, 'get_id'))? $order->get_id() : $order->id;
|
8 |
+
}
|
9 |
+
}
|
10 |
+
|
11 |
+
/**
|
12 |
+
* @see https://docs.woocommerce.com/wc-apidocs/source-class-WC_Abstract_Legacy_Order.html#406
|
13 |
+
* Get attribute from WC_Order
|
14 |
+
*
|
15 |
+
*/
|
16 |
+
if ( ! function_exists( 'order_post_meta_getter' ) ) {
|
17 |
+
function order_post_meta_getter($order, $attr) {
|
18 |
+
$meta = get_post_meta(get_order_id($order), '_'. $attr, true);
|
19 |
+
return $meta;
|
20 |
+
}
|
21 |
+
}
|
aftership-functions.php
CHANGED
@@ -13,24 +13,3 @@ if ( ! function_exists( 'is_woocommerce_active' ) ) {
|
|
13 |
return AfterShip_Dependencies::woocommerce_active_check();
|
14 |
}
|
15 |
}
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Get woo order ID
|
19 |
-
*/
|
20 |
-
if ( ! function_exists( 'get_order_id' ) ) {
|
21 |
-
function get_order_id($order) {
|
22 |
-
return (method_exists($order, 'get_id'))? $order->get_id() : $order->id;
|
23 |
-
}
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @see https://docs.woocommerce.com/wc-apidocs/source-class-WC_Abstract_Legacy_Order.html#406
|
28 |
-
* Get attribute from WC_Order
|
29 |
-
*
|
30 |
-
*/
|
31 |
-
if ( ! function_exists( 'order_post_meta_getter' ) ) {
|
32 |
-
function order_post_meta_getter($order, $attr) {
|
33 |
-
$meta = get_post_meta(get_order_id($order), '_'. $attr, true);
|
34 |
-
return $meta;
|
35 |
-
}
|
36 |
-
}
|
13 |
return AfterShip_Dependencies::woocommerce_active_check();
|
14 |
}
|
15 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
aftership.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: AfterShip - WooCommerce Tracking
|
4 |
Plugin URI: http://aftership.com/
|
5 |
Description: Add tracking number and carrier name to WooCommerce, display tracking info at order history page, auto import tracking numbers to AfterShip.
|
6 |
-
Version: 1.7.
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
@@ -20,7 +20,7 @@ defined('ABSPATH') or die("No script kiddies please!");
|
|
20 |
*/
|
21 |
if (!function_exists('is_woocommerce_active'))
|
22 |
require_once('aftership-functions.php');
|
23 |
-
|
24 |
|
25 |
/**
|
26 |
* Plugin updates
|
3 |
Plugin Name: AfterShip - WooCommerce Tracking
|
4 |
Plugin URI: http://aftership.com/
|
5 |
Description: Add tracking number and carrier name to WooCommerce, display tracking info at order history page, auto import tracking numbers to AfterShip.
|
6 |
+
Version: 1.7.5
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
20 |
*/
|
21 |
if (!function_exists('is_woocommerce_active'))
|
22 |
require_once('aftership-functions.php');
|
23 |
+
require_once('aftership-backward-compatibility.php');
|
24 |
|
25 |
/**
|
26 |
* Plugin updates
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
|
|
4 |
Tags: shipping, tracking, ups, usps, fedex, dhl, tnt, dpd, post, shipment, woocommerce, tracking number, aftership, package tracking, fulfilment, tracking link, carrier, courier, woo commerce, woocommerce shipment tracking, shipping details plugin, widget, shipstation, track, package
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -97,6 +97,12 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 1.6.8 =
|
101 |
* Fix compatibility issue with Sendcloud plugin
|
102 |
|
4 |
Tags: shipping, tracking, ups, usps, fedex, dhl, tnt, dpd, post, shipment, woocommerce, tracking number, aftership, package tracking, fulfilment, tracking link, carrier, courier, woo commerce, woocommerce shipment tracking, shipping details plugin, widget, shipstation, track, package
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.7.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 1.7.4 =
|
101 |
+
* Remove deprecated warning on Woocommerce 3
|
102 |
+
|
103 |
+
= 1.7.2 =
|
104 |
+
* Add new couriers
|
105 |
+
|
106 |
= 1.6.8 =
|
107 |
* Fix compatibility issue with Sendcloud plugin
|
108 |
|