- fixed conditional logic for profile form fields on submit;

- small notices fixes;
This commit is contained in:
nikitozzzzzzz
2017-09-01 16:39:01 +03:00
parent 9d6f6231bd
commit 1d246e0046
6 changed files with 103 additions and 62 deletions
+6 -4
View File
@@ -275,11 +275,13 @@ if ( ! class_exists( 'Fields' ) ) {
}
/**
* Print field error
* @param string $text
* @param boolean $force_show
* Print field error
*
* @param string $text
* @param bool $force_show
* @return string
*/
function field_error($text, $force_show = false ) {
function field_error( $text, $force_show = false ) {
if ( $force_show ) {
$output = '<div class="um-field-error"><span class="um-field-arrow"><i class="um-faicon-caret-up"></i></span>'.$text.'</div>';
return $output;