From 66ed23cfecff1c5cf110856f14cb85f0dac05838 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Tue, 18 Jul 2023 14:47:01 +0300 Subject: [PATCH] - fixed saving the user's bio; --- includes/core/um-actions-profile.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index f5b38c34..60d3081a 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -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 ]; + } } }