- added form administrative roles notice;

- fixed #1245;
This commit is contained in:
Mykyta Synelnikov
2023-07-11 22:31:02 +03:00
parent 979927a9df
commit bdfcd0f55f
3 changed files with 69 additions and 4 deletions
+2 -4
View File
@@ -494,10 +494,8 @@ if ( ! class_exists( 'um\core\Form' ) ) {
$cf_metakeys[] = 'profile_photo';
$cf_metakeys[] = 'cover_photo';
if ( array_key_exists( 'show_bio', $this->form_data ) ) {
if ( ! empty( $this->form_data['show_bio'] ) ) {
$cf_metakeys[] = UM()->profile()->get_show_bio_key( $this->form_data );
}
if ( ! empty( $this->form_data['use_custom_settings'] ) && ! empty( $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 );