From 913d5bc2461870a75d0c12e6a3af55ed583bbbee Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Tue, 7 Jan 2020 20:57:24 +0800 Subject: [PATCH] Fix empty space when icon is not set --- includes/core/class-fields.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 774ea3ef..a9dbec72 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -2674,7 +2674,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= $this->field_label( $label, $key, $data ); } - $output .= '
'; + $output .= '
'; if ( ! empty( $icon ) && isset( $this->field_icons ) && $this->field_icons == 'field' ) { $output .= '
'; } @@ -3008,7 +3008,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) { */ $use_keyword = apply_filters( 'um_multiselect_option_value', 0, $data['type'] ); - $output .= '
'; + $output .= '
'; if ( ! empty( $icon ) && isset( $this->field_icons ) && $this->field_icons == 'field') { $output .= '
'; }