| @@ -19,15 +19,8 @@ | ||
| 19 | 19 | 'taxonomy', |
| 20 | 20 | 'taxonomy_advanced', |
| 21 | 21 | ]; |
| 22 | 22 | |
| 23 | - $supportedFieldType = [ | |
| 24 | - 'select', | |
| 25 | - 'select_advanced', | |
| 26 | - 'checkbox_list', | |
| 27 | - 'radio_list' | |
| 28 | - ]; | |
| 29 | - | |
| 30 | 23 | $fileTypes = [ |
| 31 | 24 | 'image', |
| 32 | 25 | 'image_upload', |
| 33 | 26 | 'file_advanced', |
| @@ -44,9 +37,9 @@ | ||
| 44 | 37 | |
| 45 | 38 | $metaBoxFields = rwmb_get_object_fields($postType); |
| 46 | 39 | |
| 47 | 40 | foreach ($metaBoxFields as $index => $field) { |
| 48 | - if (in_array($field['type'], $unsupportedTypes) && !in_array($field['field_type'], $supportedFieldType)) { | |
| 41 | + if (in_array($field['type'], $unsupportedTypes)) { | |
| 49 | 42 | continue; |
| 50 | 43 | } |
| 51 | 44 | |
| 52 | 45 | if ('group' === $field['type'] && isset($field['fields'])) { |