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 .= '