Merge pull request #1322 from ultimatemember/fix/checking_mode

Checking global_args['mode']
This commit is contained in:
Mykyta Synelnikov
2023-10-04 00:30:49 +03:00
committed by GitHub
+1 -1
View File
@@ -2831,7 +2831,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
$show_bio = false;
$bio_html = false;
$global_setting = UM()->options()->get( 'profile_show_html_bio' );
if ( 'profile' === $this->global_args['mode'] ) {
if ( isset( $this->global_args['mode'] ) && 'profile' === $this->global_args['mode'] ) {
if ( ! empty( $this->global_args['use_custom_settings'] ) ) {
if ( ! empty( $this->global_args['show_bio'] ) ) {
$show_bio = true;