Notice fixes
This commit is contained in:
parent
4e57002bc3
commit
6c41843aca
|
@ -169,7 +169,7 @@ function variable_product_write_panel_js() {
|
||||||
<?php
|
<?php
|
||||||
if ($attributes) foreach ($attributes as $attribute) :
|
if ($attributes) foreach ($attributes as $attribute) :
|
||||||
|
|
||||||
if ( !$attribute['is_variation'] ) continue;
|
if ( !isset($attribute['is_variation']) || !$attribute['is_variation'] ) continue;
|
||||||
|
|
||||||
echo '<select name="attribute_' . sanitize_title($attribute['name']).'[\' + loop + \']"><option value="">'.__('Any ', 'woothemes').$woocommerce->attribute_label($attribute['name']).'…</option>';
|
echo '<select name="attribute_' . sanitize_title($attribute['name']).'[\' + loop + \']"><option value="">'.__('Any ', 'woothemes').$woocommerce->attribute_label($attribute['name']).'…</option>';
|
||||||
|
|
||||||
|
|
|
@ -267,8 +267,8 @@ function woocommerce_product_data_box() {
|
||||||
?>" placeholder="<?php _e('Pipe separate terms', 'woothemes'); ?>" />
|
?>" placeholder="<?php _e('Pipe separate terms', 'woothemes'); ?>" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="center"><input type="checkbox" <?php checked($attribute['is_visible'], 1); ?> name="attribute_visibility[<?php echo $i; ?>]" value="1" /></td>
|
<td class="center"><input type="checkbox" <?php if (isset($attribute['is_visible'])) checked($attribute['is_visible'], 1); ?> name="attribute_visibility[<?php echo $i; ?>]" value="1" /></td>
|
||||||
<td class="center enable_variation"><input type="checkbox" <?php checked($attribute['is_variation'], 1); ?> name="attribute_variation[<?php echo $i; ?>]" value="1" /></td>
|
<td class="center enable_variation"><input type="checkbox" <?php if (isset($attribute['is_variation'])) checked($attribute['is_variation'], 1); ?> name="attribute_variation[<?php echo $i; ?>]" value="1" /></td>
|
||||||
<td class="center"><button type="button" class="hide_row button">×</button></td>
|
<td class="center"><button type="button" class="hide_row button">×</button></td>
|
||||||
</tr><?php
|
</tr><?php
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
Loading…
Reference in New Issue