| @@ -3,8 +3,11 @@ | ||
| 3 | 3 | namespace ImportWP\Common\Addon; |
| 4 | 4 | |
| 5 | 5 | use ImportWP\Container; |
| 6 | 6 | |
| 7 | +/** | |
| 8 | + * @deprecated 2.14.0 | |
| 9 | + */ | |
| 7 | 10 | class AddonBaseField extends AddonBaseData implements AddonFieldInterface |
| 8 | 11 | { |
| 9 | 12 | /** |
| 10 | 13 | * @var callable |
| @@ -50,9 +53,9 @@ | ||
| 50 | 53 | |
| 51 | 54 | if ($field['type'] === 'attachment') { |
| 52 | 55 | $meta_value = $this->process_attachment($object_id, $field['id'], $section_id); |
| 53 | 56 | } else { |
| 54 | - $meta_value = $data[$field['id']]; | |
| 57 | + $meta_value = isset($data[$field['id']]) ? $data[$field['id']] : ''; | |
| 55 | 58 | } |
| 56 | 59 | |
| 57 | 60 | if ($this->_process_callback === false) { |
| 58 | 61 | $addon->store_meta($section_id, $object_id, $field['id'], $meta_value, $i); |