From f5e134e2c431851eb682a8c73393e2cf971103af Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Wed, 2 May 2018 16:26:38 +0300 Subject: [PATCH] - readme update; - small warning fix; --- includes/core/class-fields.php | 15 +++++++++------ readme.txt | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index e01ba943..9cab1a87 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -1675,6 +1675,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $form_key = str_replace( 'role_select', 'role', $key ); $field_id = $form_key; break; + default: + $field_id = ''; + break; } /** @@ -2119,16 +2122,17 @@ if ( ! class_exists( 'um\core\Fields' ) ) { // add the contents of the buffer to the output variable $output .= ob_get_clean(); - } else $output .= ''; + } else { + $output .= ''; + } - $output .= ' - '; + $output .= ''; - if (!empty( $disabled )) { + if ( ! empty( $disabled ) ) { $output .= $this->disabled_hidden_field( $field_name, $field_value ); } - if ($this->is_error( $key )) { + if ( $this->is_error( $key ) ) { $output .= $this->field_error( $this->show_error( $key ) ); } @@ -2145,7 +2149,6 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $output .= '
'; -// $output .= '
'; $output .= '
'; $output .= '
'; diff --git a/readme.txt b/readme.txt index f691ded3..111b1fba 100644 --- a/readme.txt +++ b/readme.txt @@ -136,6 +136,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat * Bugfixes: - Fixed and optimized user avatars - Fixed Profile Menu on some installs + - Fixed fields IDs duplicates = 2.0.12: April 30, 2018 =