Changeset 1412528
- Timestamp:
- 05/08/2016 10:55:14 AM (10 years ago)
- File:
-
- 1 edited
-
wc-products-pack/trunk/wc_product_pack.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-products-pack/trunk/wc_product_pack.php
r1412501 r1412528 122 122 function wc_pack_save( $post_id, $post, $update ) 123 123 { 124 if (get_post_type( $post_id ) == 'product' && $_POST['product-type'] == 'wc_pack') {124 if (get_post_type( $post_id ) == 'product' && (isset($_POST['product-type'])) && $_POST['product-type'] == 'wc_pack') { 125 125 $product = wc_get_product($post_id); 126 126 if ( isset($_POST['_regular_price']) && $_POST['_regular_price'] != '' ) {
Note: See TracChangeset
for help on using the changeset viewer.