mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
- fixed editable attribute base on the legacy code;
- if `editable` attribute doesn't exist then we set `editable` to true by default;
This commit is contained in:
@@ -2383,6 +2383,11 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
|
||||
$this->edit_mode_value = true;
|
||||
}
|
||||
|
||||
// Set to true if `editable` doesn't exist (legacy case). It will be saved to DB as `true` after the first field update.
|
||||
if ( null === $this->edit_mode_value ) {
|
||||
$this->edit_mode_value = true;
|
||||
}
|
||||
|
||||
if ( empty( $this->edit_mode_value ) ) {
|
||||
$this->edit_mode_value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user