Version Description
- Fix known issue
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.15.2 |
Comparing to | |
See all releases |
Code changes from version 1.15.1 to 1.15.2
- .huskyrc +5 -0
- aftership-woocommerce-tracking.php +2 -2
- includes/class-aftership-actions.php +14 -0
- readme.txt +4 -1
.huskyrc
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"hooks": {
|
3 |
+
"pre-commit": "./vendor/bin/phpcbf ./"
|
4 |
+
}
|
5 |
+
}
|
aftership-woocommerce-tracking.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)
|
4 |
* Plugin URI: http://aftership.com/
|
5 |
* Description: Track orders in one place. shipment tracking, automated notifications, order lookup, branded tracking page, delivery day prediction
|
6 |
-
* Version: 1.15.
|
7 |
* Author: AfterShip
|
8 |
* Author URI: http://aftership.com
|
9 |
*
|
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
20 |
|
21 |
require_once( 'woo-includes/woo-functions.php' );
|
22 |
|
23 |
-
define( 'AFTERSHIP_VERSION', '1.15.
|
24 |
define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
|
25 |
define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
|
26 |
|
3 |
* Plugin Name: AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)
|
4 |
* Plugin URI: http://aftership.com/
|
5 |
* Description: Track orders in one place. shipment tracking, automated notifications, order lookup, branded tracking page, delivery day prediction
|
6 |
+
* Version: 1.15.2
|
7 |
* Author: AfterShip
|
8 |
* Author URI: http://aftership.com
|
9 |
*
|
20 |
|
21 |
require_once( 'woo-includes/woo-functions.php' );
|
22 |
|
23 |
+
define( 'AFTERSHIP_VERSION', '1.15.2' );
|
24 |
define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
|
25 |
define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
|
26 |
|
includes/class-aftership-actions.php
CHANGED
@@ -75,11 +75,25 @@ class AfterShip_Actions {
|
|
75 |
|
76 |
/**
|
77 |
* Load aftership orders page script.
|
|
|
|
|
|
|
|
|
78 |
*/
|
79 |
public function load_orders_page_script( $hook ) {
|
80 |
if ( 'edit.php' !== $hook ) {
|
81 |
return;
|
82 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
woocommerce_wp_hidden_input(
|
84 |
array(
|
85 |
'id' => 'aftership_get_nonce',
|
75 |
|
76 |
/**
|
77 |
* Load aftership orders page script.
|
78 |
+
* Comment:
|
79 |
+
* 1. This function is applied on 2 pages
|
80 |
+
* orders list page: page id = "edit-shop_order"
|
81 |
+
* order edit page: page id = "shop_order"
|
82 |
*/
|
83 |
public function load_orders_page_script( $hook ) {
|
84 |
if ( 'edit.php' !== $hook ) {
|
85 |
return;
|
86 |
}
|
87 |
+
// The following code will be executed only when the detect page which the function belongs to
|
88 |
+
$page_screen = get_current_screen()->id;
|
89 |
+
$screen_handle_tracking = array(
|
90 |
+
'edit-shop_order',
|
91 |
+
'shop_order',
|
92 |
+
);
|
93 |
+
if ( !in_array( $page_screen, $screen_handle_tracking ) ) {
|
94 |
+
return;
|
95 |
+
}
|
96 |
+
|
97 |
woocommerce_wp_hidden_input(
|
98 |
array(
|
99 |
'id' => 'aftership_get_nonce',
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
|
|
4 |
Tags: woocommerce shipping,woocommerce tracking,shipment tracking,order tracking, woocommerce,track order,dhl,ups,usps,fedex,shipping,tracking,order
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 1.15.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -139,6 +139,9 @@ Tailor a dynamic branded tracking page. Upload promotional banner, logo, and fav
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
142 |
= 1.15.1 =
|
143 |
* Update Readme.
|
144 |
|
4 |
Tags: woocommerce shipping,woocommerce tracking,shipment tracking,order tracking, woocommerce,track order,dhl,ups,usps,fedex,shipping,tracking,order
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 1.15.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 1.15.2 =
|
143 |
+
* Fix known issue
|
144 |
+
|
145 |
= 1.15.1 =
|
146 |
* Update Readme.
|
147 |
|