- fixed updating user description if there isn't custom field on profile form, but field is displayed on profile top;

This commit is contained in:
Mykyta Synelnikov
2023-07-02 12:58:22 +03:00
parent e4fd2a8783
commit 12167f8612
+10
View File
@@ -493,6 +493,16 @@ if ( ! class_exists( 'um\core\Form' ) ) {
$cf_metakeys[] = 'profile_photo';
$cf_metakeys[] = 'cover_photo';
if ( array_key_exists( 'show_bio', $this->form_data ) ) {
if ( ! emtpy( $this->form_data['show_bio'] ) ) {
$cf_metakeys[] = UM()->profile()->get_show_bio_key( $this->form_data );
}
} else {
if ( UM()->options()->get( 'profile_show_bio' ) ) {
$cf_metakeys[] = UM()->profile()->get_show_bio_key( $this->form_data );
}
}
}
// Add required usermeta for register.
if ( 'register' === $this->form_data['mode'] ) {