Skip to content
Browse files

settings page notices

  • Loading branch information...
1 parent afae473 commit cbb84e03689fc1078182232571c22cbd6aad4893 @mikejolley mikejolley committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/woocommerce-admin-init.php
View
2 admin/woocommerce-admin-init.php
@@ -838,7 +838,7 @@ function woocommerce_permalink_settings_save() {
return;
// We need to save the options ourselves; settings api does not trigger save for the permalinks page
- if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) ) {
+ if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) && isset( $_POST['product_permalink'] ) ) {
// Cat and tag bases
$woocommerce_product_category_slug = woocommerce_clean( $_POST['woocommerce_product_category_slug'] );
$woocommerce_product_tag_slug = woocommerce_clean( $_POST['woocommerce_product_tag_slug'] );

0 comments on commit cbb84e0

Please sign in to comment.
Something went wrong with that request. Please try again.