Version Description
- Fix the apache request headers issues
Download this release
Release Info
Developer | aftership |
Plugin | AfterShip – WooCommerce Tracking |
Version | 1.1.6 |
Comparing to | |
See all releases |
Code changes from version 1.1.5 to 1.1.6
- aftership.php +1 -1
- api/class-aftership-api-authentication.php +1 -26
- 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.1.
|
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.1.6
|
7 |
Author: AfterShip
|
8 |
Author URI: http://aftership.com
|
9 |
|
api/class-aftership-api-authentication.php
CHANGED
@@ -10,31 +10,6 @@
|
|
10 |
|
11 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
12 |
|
13 |
-
if (!function_exists('apache_request_headers')) {
|
14 |
-
function apache_request_headers()
|
15 |
-
{
|
16 |
-
$arh = array();
|
17 |
-
$rx_http = '/\AHTTP_/';
|
18 |
-
foreach ($_SERVER as $key => $val) {
|
19 |
-
if (preg_match($rx_http, $key)) {
|
20 |
-
$arh_key = preg_replace($rx_http, '', $key);
|
21 |
-
$rx_matches = array();
|
22 |
-
// do some nasty string manipulations to restore the original letter case
|
23 |
-
// this should work in most cases
|
24 |
-
$rx_matches = explode('_', $arh_key);
|
25 |
-
if (count($rx_matches) > 0 and strlen($arh_key) > 2) {
|
26 |
-
foreach ($rx_matches as $ak_key => $ak_val) {
|
27 |
-
$rx_matches[$ak_key] = ucfirst($ak_val);
|
28 |
-
}
|
29 |
-
$arh_key = implode('-', $rx_matches);
|
30 |
-
}
|
31 |
-
$arh[$arh_key] = $val;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
return ($arh);
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
class AfterShip_API_Authentication
|
39 |
{
|
40 |
|
@@ -80,7 +55,7 @@ class AfterShip_API_Authentication
|
|
80 |
{
|
81 |
//$params = getAfterShipInstance()->api->server->params['GET'];
|
82 |
|
83 |
-
$headers =
|
84 |
|
85 |
// get aftership wp key
|
86 |
if (!empty($headers['AFTERSHIP_WP_KEY'])) {
|
10 |
|
11 |
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
class AfterShip_API_Authentication
|
14 |
{
|
15 |
|
55 |
{
|
56 |
//$params = getAfterShipInstance()->api->server->params['GET'];
|
57 |
|
58 |
+
$headers = getallheaders();
|
59 |
|
60 |
// get aftership wp key
|
61 |
if (!empty($headers['AFTERSHIP_WP_KEY'])) {
|
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.1.
|
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.1.5 =
|
97 |
* Fix Bug - Order page - couriers callback
|
98 |
* Fix Bug - Avoid duplicate getAfterShipInstance()
|
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.1.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
93 |
|
94 |
== Changelog ==
|
95 |
|
96 |
+
= 1.1.6 =
|
97 |
+
* Fix the apache request headers issues
|
98 |
+
|
99 |
= 1.1.5 =
|
100 |
* Fix Bug - Order page - couriers callback
|
101 |
* Fix Bug - Avoid duplicate getAfterShipInstance()
|