mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
each option of select tag is selected by default in UM forms
This commit is contained in:
@@ -908,9 +908,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
|||||||
if ( $field_value && $this->editing == true && is_array( $field_value ) && ( in_array( $value, $field_value ) || in_array( html_entity_decode( $value ), $field_value ) ) ) {
|
if ( $field_value && $this->editing == true && is_array( $field_value ) && ( in_array( $value, $field_value ) || in_array( html_entity_decode( $value ), $field_value ) ) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if ( $field_value == 0 && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
|
// if ( $field_value == 0 && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
if ( $field_value && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
|
if ( $field_value && $this->editing == true && ! is_array( $field_value ) && $field_value == $value ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user