WooCommerce Services - Version 1.13.2

Version Description

  • Fix PHP Warning when the server cannot be reached for shipping rates or products are missing dimensions
Download this release

Release Info

Developer woothemes
Plugin Icon 128x128 WooCommerce Services
Version 1.13.2
Comparing to
See all releases

Code changes from version 1.13.1 to 1.13.2

classes/class-wc-connect-shipping-method.php CHANGED
@@ -245,7 +245,7 @@ if ( ! class_exists( 'WC_Connect_Shipping_Method' ) ) {
245
  return is_string( $preset_id );
246
  }
247
 
248
- private function check_and_handle_response_error( $response_body ) {
249
  if ( is_wp_error( $response_body ) ) {
250
  $this->debug(
251
  sprintf(
@@ -349,7 +349,7 @@ if ( ! class_exists( 'WC_Connect_Shipping_Method' ) ) {
349
  $this->debug( 'Rates response retrieved from cache' );
350
  } else {
351
  $response_body = $this->api_client->get_shipping_rates( $services, $package, $custom_boxes, $predefined_boxes );
352
- if ( $this->check_and_handle_response_error( $response_body ) ) {
353
  return;
354
  }
355
  wp_cache_set( $cache_key, $response_body, '', 3600 );
245
  return is_string( $preset_id );
246
  }
247
 
248
+ private function check_and_handle_response_error( $response_body, $service_settings ) {
249
  if ( is_wp_error( $response_body ) ) {
250
  $this->debug(
251
  sprintf(
349
  $this->debug( 'Rates response retrieved from cache' );
350
  } else {
351
  $response_body = $this->api_client->get_shipping_rates( $services, $package, $custom_boxes, $predefined_boxes );
352
+ if ( $this->check_and_handle_response_error( $response_body, $service_settings ) ) {
353
  return;
354
  }
355
  wp_cache_set( $cache_key, $response_body, '', 3600 );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic, woothemes, allendav, kellychoffman, jkudish, jeffstiel
3
  Tags: canada-post, shipping, stamps, usps, woocommerce, taxes, payment, stripe
4
  Requires at least: 4.6
5
  Tested up to: 4.9.5
6
- Stable tag: 1.13.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -91,6 +91,9 @@ The source code is freely available [in GitHub](https://github.com/Automattic/wo
91
 
92
  == Changelog ==
93
 
 
 
 
94
  = 1.13.1 =
95
  * Fix PHP Warning for individually packed shipping rates
96
 
3
  Tags: canada-post, shipping, stamps, usps, woocommerce, taxes, payment, stripe
4
  Requires at least: 4.6
5
  Tested up to: 4.9.5
6
+ Stable tag: 1.13.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
91
 
92
  == Changelog ==
93
 
94
+ = 1.13.2 =
95
+ * Fix PHP Warning when the server cannot be reached for shipping rates or products are missing dimensions
96
+
97
  = 1.13.1 =
98
  * Fix PHP Warning for individually packed shipping rates
99
 
woocommerce-services.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author URI: https://woocommerce.com/
8
  * Text Domain: woocommerce-services
9
  * Domain Path: /i18n/languages/
10
- * Version: 1.13.1
11
  * WC requires at least: 3.0.0
12
  * WC tested up to: 3.3.4
13
  *
7
  * Author URI: https://woocommerce.com/
8
  * Text Domain: woocommerce-services
9
  * Domain Path: /i18n/languages/
10
+ * Version: 1.13.2
11
  * WC requires at least: 3.0.0
12
  * WC tested up to: 3.3.4
13
  *