Skip to content

Commit

Permalink
Merge pull request #220 from hefawei/0401-fix-wc-sdk-err
Browse files Browse the repository at this point in the history
[CI]fix variable type = object not array
  • Loading branch information
hefawei authored Apr 1, 2024
2 parents 673d3aa + c02a792 commit 2853bda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aftership-woocommerce-tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)
* Plugin URI: http://aftership.com/
* Description: Track orders in one place. shipment tracking, automated notifications, order lookup, branded tracking page, delivery day prediction
* Version: 1.17.11
* Version: 1.17.12
* Author: AfterShip
* Author URI: http://aftership.com
*
Expand All @@ -20,7 +20,7 @@

require_once( 'woo-includes/woo-functions.php' );

define( 'AFTERSHIP_VERSION', '1.17.11' );
define( 'AFTERSHIP_VERSION', '1.17.12' );
define( 'AFTERSHIP_PATH', dirname( __FILE__ ) );
define( 'AFTERSHIP_ASSETS_URL', plugins_url() . '/' . basename( AFTERSHIP_PATH ) );
define( 'AFTERSHIP_SCRIPT_TAGS', 'aftership_script_tags' );
Expand Down
2 changes: 1 addition & 1 deletion includes/class-aftership-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public function post_order_tracking( $order_id, $args ) {
$tracking_item['tracking_number'] = wc_clean( $args['tracking_number'] );
$tracking_item['tracking_id'] = md5( "{$tracking_item['slug']}-{$tracking_item['tracking_number']}" );
// need apply default value
$tracking_item['additional_fields'] = array();
$tracking_item['additional_fields'] = new stdClass();
// line items for each tracking
if ( isset( $args['line_items'] ) && is_array( $args['line_items'] ) && count( $args['line_items'] ) ) {
$tracking_item['line_items'] = $args['line_items'];
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.aftership.com/
Tags: woocommerce shipping,woocommerce tracking,shipment tracking,order tracking, woocommerce,track order,dhl,ups,usps,fedex,shipping,tracking,order
Requires at least: 2.9
Tested up to: 6.3
Stable tag: 1.17.11
Stable tag: 1.17.12
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -141,6 +141,9 @@ Tailor a dynamic branded tracking page. Upload promotional banner, logo, and fav

== Changelog ==

= 1.17.12 =
* Fix known issue

= 1.17.11 =
* Fix known issue

Expand Down

0 comments on commit 2853bda

Please sign in to comment.