mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Remove notices
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
if( isset( $fields ) ){
|
||||
foreach( $fields as $key => $array ) {
|
||||
if ( isset($array['validate']) && in_array( $array['validate'], array('unique_username','unique_email','unique_username_or_email') ) ) {
|
||||
if ( !$ultimatemember->form->has_error( $key ) && in_array( $args[$key], $words ) ) {
|
||||
if ( !$ultimatemember->form->has_error( $key ) && isset( $args[$key] ) && in_array( $args[$key], $words ) ) {
|
||||
$ultimatemember->form->add_error( $key, __('You are not allowed to use this word as your username.','ultimatemember') );
|
||||
}
|
||||
}
|
||||
|
||||
+6
-2
@@ -2426,8 +2426,12 @@ class UM_Fields {
|
||||
if ( $borderradius ) $css_heading_borderradius = 'border-radius: ' . $borderradius . ' ' . $borderradius . ' 0px 0px;';
|
||||
|
||||
$output .= '<div class="um-row-heading" style="' . $css_heading_background_color . $css_heading_padding . $css_heading_text_color . $css_heading_borderradius . '">';
|
||||
if ( isset($icon) ) $output .= '<span class="um-row-heading-icon"><i class="' . $icon . '"></i></span>';
|
||||
$output .= $heading_text .'</div>';
|
||||
|
||||
if ( isset( $icon ) ) {
|
||||
$output .= '<span class="um-row-heading-icon"><i class="' . $icon . '"></i></span>';
|
||||
}
|
||||
|
||||
$output .= ( ! empty( $heading_text ) ? $heading_text: '') .'</div>';
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user