Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

settings page notices

  • Loading branch information...
commit cbb84e03689fc1078182232571c22cbd6aad4893 1 parent afae473
@mikejolley mikejolley authored
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'] );
Please sign in to comment.
Something went wrong with that request. Please try again.