AfterShip – WooCommerce Tracking - Version 1.4.1

Version Description

  • Add order by filter option
Download this release

Release Info

Developer aftership
Plugin Icon 128x128 AfterShip – WooCommerce Tracking
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4.0 to 1.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.4.0
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.4.1
7
  Author: AfterShip
8
  Author URI: http://aftership.com
9
 
api/class-aftership-api-orders.php CHANGED
@@ -445,7 +445,7 @@ class AfterShip_API_Orders extends AfterShip_API_Resource
445
 
446
  $query_args = $this->merge_query_args($query_args, $args);
447
 
448
- return new WP_Query($query_args);
449
  }
450
 
451
  /**
445
 
446
  $query_args = $this->merge_query_args($query_args, $args);
447
 
448
+ return new WP_Query($query_args);
449
  }
450
 
451
  /**
api/class-aftership-api-resource.php CHANGED
@@ -158,7 +158,13 @@ class AfterShip_API_Resource
158
  // resource page
159
  $args['paged'] = (isset($request_args['page'])) ? absint($request_args['page']) : 1;
160
 
161
- return array_merge($base_args, $args);
 
 
 
 
 
 
162
  }
163
 
164
  /**
158
  // resource page
159
  $args['paged'] = (isset($request_args['page'])) ? absint($request_args['page']) : 1;
160
 
161
+ // order
162
+ if (!empty($request_args['orderby']))
163
+ $args['orderby'] = $request_args['orderby'];
164
+ if (!empty($request_args['order']))
165
+ $args['order'] = $request_args['order'];
166
+
167
+ return array_merge($base_args, $args);
168
  }
169
 
170
  /**
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.1
7
- Stable tag: 1.4.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -95,6 +95,9 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
95
 
96
  == Changelog ==
97
 
 
 
 
98
  = 1.4.0 =
99
  * Remove courier url and telephone no.
100
 
@@ -130,95 +133,6 @@ You'll find the FAQ on [AfterShip.com](https://aftership.uservoice.com/knowledge
130
  = 1.3.0 =
131
  * Fix the redeclare class issues
132
 
133
- = 1.2.9 =
134
- * Update the courier list
135
-
136
- = 1.2.8 =
137
- * Fix Dependencies name
138
- * Hide the provider name and required fields wrapper
139
-
140
- = 1.2.7 =
141
- * Fix svn
142
-
143
- = 1.2.6 =
144
- * Fix installation problem, php array
145
-
146
- = 1.2.5 =
147
- * No longer require to input AfterShip API key at Wordpress
148
- * Allow carrier selection at Wordpress
149
- * Support PHP 5.2.4 or greater
150
-
151
- = 1.2.4 =
152
- * Fix enable track button issues
153
- * Support at least WooCommerce 2.1
154
-
155
- = 1.2.3 =
156
- * Fix undefined variables issue
157
- * Add Icon
158
- * Support Wordpress 4.0
159
-
160
- = 1.2.2 =
161
- * Fix the header issues of different server
162
-
163
- = 1.2.1 =
164
- * Fix the header issues of different server
165
-
166
- = 1.2.0 =
167
- * Fix the header issues of different server
168
-
169
- = 1.1.9 =
170
- * Fix the header issues of different server
171
-
172
- = 1.1.8 =
173
- * Fix the email display issues
174
-
175
- = 1.1.7 =
176
- * Fix the headers issues
177
-
178
- = 1.1.6 =
179
- * Fix the apache request headers issues
180
-
181
- = 1.1.5 =
182
- * Fix Bug - Order page - couriers callback
183
- * Fix Bug - Avoid duplicate getAfterShipInstance()
184
-
185
- = 1.1.4 =
186
- * Fix Bug - assets location
187
- * Fix Bug - WC Dependency
188
-
189
- = 1.1.3 =
190
- * Fix Bug - WC Dependency
191
- * i18N change to AfterShip
192
-
193
- = 1.1.2 =
194
- * Updated the plugin name
195
-
196
- = 1.1.1 =
197
- * Updated the version number in aftership.php !
198
-
199
- = 1.1.0 =
200
- * Released
201
-
202
- = 1.0.5 =
203
- * Update Readme - add a video
204
-
205
- = 1.0.4 =
206
- * Delete changelog.txt
207
-
208
- = 1.0.3 =
209
- * Fix the plugin name
210
- * Remove unused 3rd party plugin
211
-
212
- = 1.0.2 =
213
- * Remove the unnecessary plugin updater
214
-
215
- = 1.0.1 =
216
- * Fix the apache request headers issues
217
- * Readme
218
-
219
- = 1.0.0 =
220
- * AfterShip plugin launched
221
-
222
 
223
  == Upgrade Notice ==
224
 
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.1
7
+ Stable tag: 1.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
95
 
96
  == Changelog ==
97
 
98
+ = 1.4.1 =
99
+ * Add order by filter option
100
+
101
  = 1.4.0 =
102
  * Remove courier url and telephone no.
103
 
133
  = 1.3.0 =
134
  * Fix the redeclare class issues
135
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
 
137
  == Upgrade Notice ==
138