Merge pull request #12499 from woocommerce/fix/catalog-visibility

Set featured status and catalog visibility when saving products.
This commit is contained in:
Justin Shreve 2016-12-01 17:26:16 -08:00 committed by GitHub
commit 877c4c52ce
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,8 @@ class WC_Meta_Box_Product_Data {
'purchase_note' => wp_kses_post( stripslashes( $_POST['_purchase_note'] ) ),
'downloadable' => isset( $_POST['_downloadable'] ),
'virtual' => isset( $_POST['_virtual'] ),
'featured' => isset( $_POST['_featured'] ),
'catalog_visibility' => wc_clean( $_POST['_visibility'] ),
'tax_status' => wc_clean( $_POST['_tax_status'] ),
'tax_class' => wc_clean( $_POST['_tax_class'] ),
'weight' => wc_clean( $_POST['_weight'] ),