diff --git a/includes/admin/class-wc-admin-post-types.php b/includes/admin/class-wc-admin-post-types.php
index b36ec3530d5..727cee08802 100644
--- a/includes/admin/class-wc-admin-post-types.php
+++ b/includes/admin/class-wc-admin-post-types.php
@@ -977,7 +977,9 @@ class WC_Admin_Post_Types {
}
if ( ! empty( $_REQUEST['_shipping_class'] ) ) {
- wp_set_object_terms( $post_id, wc_clean( $_REQUEST['_shipping_class'] ), 'product_shipping_class' );
+ $shipping_class = '_no_shipping_class' == $_REQUEST['_shipping_class'] ? '' : wc_clean( $_REQUEST['_shipping_class'] );
+
+ wp_set_object_terms( $post_id, $shipping_class, 'product_shipping_class' );
}
if ( isset( $_REQUEST['_visibility'] ) ) {
diff --git a/includes/admin/views/html-quick-edit-product.php b/includes/admin/views/html-quick-edit-product.php
index d42435d04e2..59002dec3bc 100644
--- a/includes/admin/views/html-quick-edit-product.php
+++ b/includes/admin/views/html-quick-edit-product.php
@@ -121,7 +121,7 @@ if ( ! defined( 'ABSPATH' ) ) {