- fixed issues with the fields without metakeys;

- fixed integration issues for the fields without metakeys;
This commit is contained in:
nikitasinelnikov
2019-08-20 16:11:01 +03:00
parent c71a153afc
commit 3919b62c17
3 changed files with 46 additions and 62 deletions
+2 -1
View File
@@ -3744,7 +3744,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
}
//hide if empty
if ( ! in_array( $type, array( 'block', 'shortcode', 'spacing', 'divider', 'group' ) ) ) {
$fields_without_metakey = UM()->builtin()->get_fields_without_metakey();
if ( ! in_array( $type, $fields_without_metakey ) ) {
$_field_value = $this->field_value( $key, $default, $data );
if ( ! isset( $_field_value ) || $_field_value == '' ) {