Version Description
- Handling API key in more reliable way
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.6.2 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.2
- aftership.php +1 -1
- api/class-aftership-api-authentication.php +3 -0
- readme.txt +4 -1
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.6.
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
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.6.2
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
api/class-aftership-api-authentication.php
CHANGED
@@ -76,6 +76,7 @@ class AfterShip_API_Authentication
|
|
76 |
$key = 'AFTERSHIP_WP_KEY';
|
77 |
$key1 = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
|
78 |
$key2 = 'AFTERSHIP-WP-KEY';
|
|
|
79 |
|
80 |
// get aftership wp key
|
81 |
if (!empty($headers[$key])) {
|
@@ -84,6 +85,8 @@ class AfterShip_API_Authentication
|
|
84 |
$api_key = $headers[$key1];
|
85 |
} else if (!empty($headers[$key2])){
|
86 |
$api_key = $headers[$key2];
|
|
|
|
|
87 |
} else {
|
88 |
throw new Exception(__('AfterShip\'s WordPress Key is missing', 'aftership'), 404);
|
89 |
}
|
76 |
$key = 'AFTERSHIP_WP_KEY';
|
77 |
$key1 = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
|
78 |
$key2 = 'AFTERSHIP-WP-KEY';
|
79 |
+
$qskey = $_GET['key'];
|
80 |
|
81 |
// get aftership wp key
|
82 |
if (!empty($headers[$key])) {
|
85 |
$api_key = $headers[$key1];
|
86 |
} else if (!empty($headers[$key2])){
|
87 |
$api_key = $headers[$key2];
|
88 |
+
} else if (!empty($qskey)) {
|
89 |
+
$api_key = $qskey;
|
90 |
} else {
|
91 |
throw new Exception(__('AfterShip\'s WordPress Key is missing', 'aftership'), 404);
|
92 |
}
|
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.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -92,6 +92,9 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
92 |
|
93 |
== Changelog ==
|
94 |
|
|
|
|
|
|
|
95 |
= 1.6.1 =
|
96 |
* Fixed Woocommerce Tracking plugin provider error
|
97 |
|
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.6.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
92 |
|
93 |
== Changelog ==
|
94 |
|
95 |
+
= 1.6.2 =
|
96 |
+
* Handling API key in more reliable way
|
97 |
+
|
98 |
= 1.6.1 =
|
99 |
* Fixed Woocommerce Tracking plugin provider error
|
100 |
|