Version Description
- Fix broken admin after product featured in 'missing weight' notice is deleted
Download this release
Release Info
Developer | woothemes |
Plugin | WooCommerce Services |
Version | 1.13.3 |
Comparing to | |
See all releases |
Code changes from version 1.13.2 to 1.13.3
- classes/class-wc-connect-error-notice.php +2 -2
- readme.txt +4 -1
- woocommerce-services.php +1 -1
classes/class-wc-connect-error-notice.php
CHANGED
@@ -58,13 +58,13 @@ if ( ! class_exists( 'WC_Connect_Error_Notice' ) ) {
|
|
58 |
$error_data = $error->get_error_data();
|
59 |
$product_id = $error_data['product_id'];
|
60 |
$product = wc_get_product( $product_id );
|
61 |
-
$product_name = WC_Connect_Compatibility::instance()->get_product_name( $product );
|
62 |
|
63 |
-
if ( $product->has_weight() ) {
|
64 |
$this->disable_notice();
|
65 |
return;
|
66 |
}
|
67 |
|
|
|
68 |
$message = sprintf(
|
69 |
__( '<strong>%2$s does not have a weight defined.</strong><br />Shipping rates cannot be calculated. <a href="%1$s">Add a weight for %2$s</a> so your customers can purchase this item.', 'woocommerce-services' ),
|
70 |
get_edit_post_link( $product_id ), $product_name
|
58 |
$error_data = $error->get_error_data();
|
59 |
$product_id = $error_data['product_id'];
|
60 |
$product = wc_get_product( $product_id );
|
|
|
61 |
|
62 |
+
if ( ! $product || $product->has_weight() ) {
|
63 |
$this->disable_notice();
|
64 |
return;
|
65 |
}
|
66 |
|
67 |
+
$product_name = WC_Connect_Compatibility::instance()->get_product_name( $product );
|
68 |
$message = sprintf(
|
69 |
__( '<strong>%2$s does not have a weight defined.</strong><br />Shipping rates cannot be calculated. <a href="%1$s">Add a weight for %2$s</a> so your customers can purchase this item.', 'woocommerce-services' ),
|
70 |
get_edit_post_link( $product_id ), $product_name
|
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.
|
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.2 =
|
95 |
* Fix PHP Warning when the server cannot be reached for shipping rates or products are missing dimensions
|
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.3
|
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.3 =
|
95 |
+
* Fix broken admin after product featured in 'missing weight' notice is deleted
|
96 |
+
|
97 |
= 1.13.2 =
|
98 |
* Fix PHP Warning when the server cannot be reached for shipping rates or products are missing dimensions
|
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.
|
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.3
|
11 |
* WC requires at least: 3.0.0
|
12 |
* WC tested up to: 3.3.4
|
13 |
*
|