Version Description
- 2021-08-24 =
- Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
Download this release
Release Info
| Developer | superdav42 |
| Plugin | |
| Version | 4.1.45 |
| Comparing to | |
| See all releases | |
Code changes from version 4.1.44 to 4.1.45
- changelog.txt +3 -0
- includes/api-requests/class-wc-shipstation-api-shipnotify.php +1 -23
- readme.txt +5 -2
- woocommerce-shipstation.php +4 -4
changelog.txt
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
*** ShipStation for WooCommerce ***
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
= 4.1.44 - 2021-08-12 =
|
| 4 |
* Fix - Changing text domain to "woocommerce-shipstation-integration" to match with plugin slug.
|
| 5 |
* Fix - Order product quantities do not sync to Shipstation when using a refund.
|
| 1 |
*** ShipStation for WooCommerce ***
|
| 2 |
|
| 3 |
+
= 4.1.45 - 2021-08-24 =
|
| 4 |
+
* Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
|
| 5 |
+
|
| 6 |
= 4.1.44 - 2021-08-12 =
|
| 7 |
* Fix - Changing text domain to "woocommerce-shipstation-integration" to match with plugin slug.
|
| 8 |
* Fix - Order product quantities do not sync to Shipstation when using a refund.
|
includes/api-requests/class-wc-shipstation-api-shipnotify.php
CHANGED
|
@@ -111,28 +111,6 @@ class WC_Shipstation_API_Shipnotify extends WC_Shipstation_API_Request {
|
|
| 111 |
return apply_filters( 'woocommerce_shipstation_get_order_id', absint( $order_id ) );
|
| 112 |
}
|
| 113 |
|
| 114 |
-
/**
|
| 115 |
-
* Retrieves the raw request data (body).
|
| 116 |
-
*
|
| 117 |
-
* `$HTTP_RAW_POST_DATA` is deprecated in PHP 5.6 and removed in PHP 7.0,
|
| 118 |
-
* it's used here for server that has issue with reading `php://input`
|
| 119 |
-
* stream.
|
| 120 |
-
*
|
| 121 |
-
* @since 4.1.17
|
| 122 |
-
* @version 4.1.17
|
| 123 |
-
*
|
| 124 |
-
* @return string Raw request data.
|
| 125 |
-
*/
|
| 126 |
-
private function get_raw_post_data() {
|
| 127 |
-
global $HTTP_RAW_POST_DATA;
|
| 128 |
-
|
| 129 |
-
if ( ! isset( $HTTP_RAW_POST_DATA ) ) {
|
| 130 |
-
$HTTP_RAW_POST_DATA = file_get_contents( 'php://input' );
|
| 131 |
-
}
|
| 132 |
-
|
| 133 |
-
return $HTTP_RAW_POST_DATA;
|
| 134 |
-
}
|
| 135 |
-
|
| 136 |
/**
|
| 137 |
* Get Parsed XML response.
|
| 138 |
*
|
|
@@ -173,7 +151,7 @@ class WC_Shipstation_API_Shipnotify extends WC_Shipstation_API_Request {
|
|
| 173 |
$this->validate_input( array( 'order_number', 'carrier' ) );
|
| 174 |
|
| 175 |
$timestamp = current_time( 'timestamp' );
|
| 176 |
-
$shipstation_xml =
|
| 177 |
$shipped_items = array();
|
| 178 |
$shipped_item_count = 0;
|
| 179 |
$order_shipped = false;
|
| 111 |
return apply_filters( 'woocommerce_shipstation_get_order_id', absint( $order_id ) );
|
| 112 |
}
|
| 113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
/**
|
| 115 |
* Get Parsed XML response.
|
| 116 |
*
|
| 151 |
$this->validate_input( array( 'order_number', 'carrier' ) );
|
| 152 |
|
| 153 |
$timestamp = current_time( 'timestamp' );
|
| 154 |
+
$shipstation_xml = file_get_contents( 'php://input' );
|
| 155 |
$shipped_items = array();
|
| 156 |
$shipped_item_count = 0;
|
| 157 |
$order_shipped = false;
|
readme.txt
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
Contributors: woocommerce, automattic, royho, akeda, mattyza, bor0, woothemes, dwainm, laurendavissmith001
|
| 3 |
Tags: shipping, woocommerce, automattic
|
| 4 |
Requires at least: 4.4
|
| 5 |
-
Tested up to: 5.
|
| 6 |
Requires PHP: 5.6
|
| 7 |
-
Stable tag: 4.1.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
|
@@ -46,6 +46,9 @@ If you get stuck, you can ask for help in the Plugin Forum.
|
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
= 4.1.44 - 2021-08-12 =
|
| 50 |
* Fix - Changing text domain to "woocommerce-shipstation-integration" to match with plugin slug.
|
| 51 |
* Fix - Order product quantities do not sync to Shipstation when using a refund.
|
| 2 |
Contributors: woocommerce, automattic, royho, akeda, mattyza, bor0, woothemes, dwainm, laurendavissmith001
|
| 3 |
Tags: shipping, woocommerce, automattic
|
| 4 |
Requires at least: 4.4
|
| 5 |
+
Tested up to: 5.8
|
| 6 |
Requires PHP: 5.6
|
| 7 |
+
Stable tag: 4.1.45
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
= 4.1.45 - 2021-08-24 =
|
| 50 |
+
* Fix - Remove all usage of deprecated $HTTP_RAW_POST_DATA.
|
| 51 |
+
|
| 52 |
= 4.1.44 - 2021-08-12 =
|
| 53 |
* Fix - Changing text domain to "woocommerce-shipstation-integration" to match with plugin slug.
|
| 54 |
* Fix - Order product quantities do not sync to Shipstation when using a refund.
|
woocommerce-shipstation.php
CHANGED
|
@@ -2,14 +2,14 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: WooCommerce - ShipStation Integration
|
| 4 |
* Plugin URI: https://woocommerce.com/products/shipstation-integration/
|
| 5 |
-
* Version: 4.1.
|
| 6 |
* Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
|
| 7 |
* Author: WooCommerce
|
| 8 |
* Author URI: https://woocommerce.com/
|
| 9 |
* Text Domain: woocommerce-shipstation-integration
|
| 10 |
* Domain Path: /languages
|
| 11 |
-
* Tested up to: 5.
|
| 12 |
-
* WC tested up to:
|
| 13 |
* WC requires at least: 3.4
|
| 14 |
*/
|
| 15 |
|
|
@@ -41,7 +41,7 @@ function woocommerce_shipstation_init() {
|
|
| 41 |
return;
|
| 42 |
}
|
| 43 |
|
| 44 |
-
define( 'WC_SHIPSTATION_VERSION', '4.1.
|
| 45 |
define( 'WC_SHIPSTATION_FILE', __FILE__ );
|
| 46 |
|
| 47 |
if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
|
| 2 |
/**
|
| 3 |
* Plugin Name: WooCommerce - ShipStation Integration
|
| 4 |
* Plugin URI: https://woocommerce.com/products/shipstation-integration/
|
| 5 |
+
* Version: 4.1.45
|
| 6 |
* Description: Adds ShipStation label printing support to WooCommerce. Requires server DomDocument support.
|
| 7 |
* Author: WooCommerce
|
| 8 |
* Author URI: https://woocommerce.com/
|
| 9 |
* Text Domain: woocommerce-shipstation-integration
|
| 10 |
* Domain Path: /languages
|
| 11 |
+
* Tested up to: 5.8
|
| 12 |
+
* WC tested up to: 5.6
|
| 13 |
* WC requires at least: 3.4
|
| 14 |
*/
|
| 15 |
|
| 41 |
return;
|
| 42 |
}
|
| 43 |
|
| 44 |
+
define( 'WC_SHIPSTATION_VERSION', '4.1.45' ); // WRCS: DEFINED_VERSION.
|
| 45 |
define( 'WC_SHIPSTATION_FILE', __FILE__ );
|
| 46 |
|
| 47 |
if ( ! defined( 'WC_SHIPSTATION_EXPORT_LIMIT' ) ) {
|
