Plugin Directory

Changeset 1412528


Ignore:
Timestamp:
05/08/2016 10:55:14 AM (10 years ago)
Author:
pco_58
Message:

fix error is_plugin_active_for_network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wc-products-pack/trunk/wc_product_pack.php

    r1412501 r1412528  
    122122function wc_pack_save( $post_id, $post, $update )
    123123{
    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') {
    125125    $product = wc_get_product($post_id);
    126126    if ( isset($_POST['_regular_price']) && $_POST['_regular_price'] != '' ) {
Note: See TracChangeset for help on using the changeset viewer.