From 028178ac0599d8294bcc05fcc499cd91628c6f10 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Sat, 4 Feb 2017 16:29:11 +0800 Subject: [PATCH] Fix icon display as label in profile view --- core/um-fields.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/um-fields.php b/core/um-fields.php index 4073e9bf..8ecfb0f6 100644 --- a/core/um-fields.php +++ b/core/um-fields.php @@ -2521,8 +2521,8 @@ class UM_Fields { default: $output .= '
'; - - if ( isset( $data['label'] ) ) { + + if ( isset( $data['label'] ) || isset( $data['icon'] ) && ! empty( $data['icon'] ) ) { $output .= $this->field_label($label, $key, $data); } @@ -2580,7 +2580,7 @@ class UM_Fields { $output .= '
'; - if ( isset( $data['label'] ) ) { + if ( isset( $data['label'] ) || isset( $data['icon'] ) && ! empty( $data['icon'] ) ) { $output .= $this->field_label($label, $key, $data); }