Version Description
- Fix the header issues of different server
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.2.1
- aftership.php +1 -1
- api/class-aftership-api-authentication.php +4 -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.2.
|
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.2.1
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
api/class-aftership-api-authentication.php
CHANGED
@@ -71,14 +71,18 @@ class AfterShip_API_Authentication
|
|
71 |
|
72 |
$headers = getallheaders();
|
73 |
|
|
|
74 |
$key = 'AFTERSHIP_WP_KEY';
|
75 |
$key1 = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
|
|
|
76 |
|
77 |
// get aftership wp key
|
78 |
if (!empty($headers[$key])) {
|
79 |
$api_key = $headers[$key];
|
80 |
} else if (!empty($headers[$key1])){
|
81 |
$api_key = $headers[$key1];
|
|
|
|
|
82 |
} else {
|
83 |
throw new Exception(__('AfterShip\'s WordPress Key is missing', 'aftership'), 404);
|
84 |
}
|
71 |
|
72 |
$headers = getallheaders();
|
73 |
|
74 |
+
// it dues to different kind of server configuration
|
75 |
$key = 'AFTERSHIP_WP_KEY';
|
76 |
$key1 = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key))));
|
77 |
+
$key2 = 'AFTERSHIP-WP-KEY';
|
78 |
|
79 |
// get aftership wp key
|
80 |
if (!empty($headers[$key])) {
|
81 |
$api_key = $headers[$key];
|
82 |
} else if (!empty($headers[$key1])){
|
83 |
$api_key = $headers[$key1];
|
84 |
+
} else if (!empty($headers[$key2])){
|
85 |
+
$api_key = $headers[$key2];
|
86 |
} else {
|
87 |
throw new Exception(__('AfterShip\'s WordPress Key is missing', 'aftership'), 404);
|
88 |
}
|
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: 3.9.2
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -93,6 +93,9 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
|
|
93 |
|
94 |
== Changelog ==
|
95 |
|
|
|
|
|
|
|
96 |
= 1.2.0 =
|
97 |
* Fix the header issues of different server
|
98 |
|
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: 3.9.2
|
7 |
+
Stable tag: 1.2.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.2.1 =
|
97 |
+
* Fix the header issues of different server
|
98 |
+
|
99 |
= 1.2.0 =
|
100 |
* Fix the header issues of different server
|
101 |
|