mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- standardize the condition for checking not editable fields to empty( $data['editable']
This commit is contained in:
@@ -3597,7 +3597,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$class = 'um-icon-android-radio-button-off';
|
||||
}
|
||||
|
||||
if ( isset( $data['editable'] ) && 0 === $data['editable'] ) {
|
||||
if ( empty( $data['editable'] ) ) {
|
||||
$col_class .= ' um-field-radio-state-disabled';
|
||||
}
|
||||
|
||||
@@ -3716,7 +3716,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$class = 'um-icon-android-checkbox-outline-blank';
|
||||
}
|
||||
|
||||
if ( isset( $data['editable'] ) && 0 === $data['editable'] ) {
|
||||
if ( empty( $data['editable'] ) ) {
|
||||
$col_class .= ' um-field-radio-state-disabled';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user