- fixed saving the user's bio;

This commit is contained in:
Mykyta Synelnikov
2023-07-18 14:47:01 +03:00
parent d408942c90
commit 66ed23cfec
+6 -2
View File
@@ -358,9 +358,13 @@ function um_user_edit_profile( $args, $form_data ) {
}
$description_key = UM()->profile()->get_show_bio_key( $args );
if ( ! isset( $to_update[ $description_key ] ) && ! empty( $form_data['show_bio'] ) ) {
if ( isset( $args['submitted'][ $description_key ] ) ) {
if ( ! isset( $to_update[ $description_key ] ) && isset( $args['submitted'][ $description_key ] ) ) {
if ( ! empty( $form_data['use_custom_settings'] ) && ! empty( $form_data['show_bio'] ) ) {
$to_update[ $description_key ] = $args['submitted'][ $description_key ];
} else {
if ( UM()->options()->get( 'profile_show_bio' ) ) {
$to_update[ $description_key ] = $args['submitted'][ $description_key ];
}
}
}