diff --git a/includes/admin/core/class-admin-settings.php b/includes/admin/core/class-admin-settings.php index e84ee6c0..fa4ddce8 100644 --- a/includes/admin/core/class-admin-settings.php +++ b/includes/admin/core/class-admin-settings.php @@ -3432,18 +3432,22 @@ Blacklist Words: options()->get('bl --- UM Email Configurations --- -Mail appears from: options()->get('mail_from'); if( ! empty( $mail_from ) ){echo UM()->options()->get('mail_from');}else{echo "-";}; echo "\n";?> -Mail appears from address: options()->get('mail_from_addr'); if( ! empty( $mail_from_addr ) ){echo UM()->options()->get('mail_from_addr');}else{echo "-";}; echo "\n";?> -Use HTML for E-mails: info_value( UM()->options()->get('email_html'), 'yesno', true ); ?> -Account Welcome Email: info_value( UM()->options()->get('welcome_email_on'), 'yesno', true ); ?> -Account Activation Email: info_value( UM()->options()->get('checkmail_email_on'), 'yesno', true ); ?> -Pending Review Email: info_value( UM()->options()->get('pending_email_on'), 'yesno', true ); ?> -Account Approved Email: info_value( UM()->options()->get('approved_email_on'), 'yesno', true ); ?> -Account Rejected Email: info_value( UM()->options()->get('rejected_email_on'), 'yesno', true ); ?> -Account Deactivated Email: info_value( UM()->options()->get('inactive_email_on'), 'yesno', true ); ?> -Account Deleted Email: info_value( UM()->options()->get('deletion_email_on'), 'yesno', true ); ?> -Password Reset Email: info_value( UM()->options()->get('resetpw_email_on'), 'yesno', true ); ?> -Password Changed Email: info_value( UM()->options()->get('changedpw_email_on'), 'yesno', true ); ?> +Mail appears from: options()->get( 'mail_from' ); if ( ! empty( $mail_from ) ){ echo UM()->options()->get( 'mail_from' ); } else { echo "-"; }; echo "\n"; ?> +Mail appears from address: options()->get( 'mail_from_addr' ); if ( ! empty( $mail_from_addr ) ) { echo UM()->options()->get( 'mail_from_addr' ); } else { echo "-"; }; echo "\n"; ?> +Use HTML for E-mails: info_value( UM()->options()->get( 'email_html' ), 'yesno', true ); ?> +Account Welcome Email: info_value( UM()->options()->get( 'welcome_email_on' ), 'yesno', true ); ?> +Account Activation Email: info_value( UM()->options()->get( 'checkmail_email_on' ), 'yesno', true ); ?> +Pending Review Email: info_value( UM()->options()->get( 'pending_email_on' ), 'yesno', true ); ?> +Account Approved Email: info_value( UM()->options()->get( 'approved_email_on' ), 'yesno', true ); ?> +Account Rejected Email: info_value( UM()->options()->get( 'rejected_email_on' ), 'yesno', true ); ?> +Account Deactivated Email: info_value( UM()->options()->get( 'inactive_email_on' ), 'yesno', true ); ?> +Account Deleted Email: info_value( UM()->options()->get( 'deletion_email_on' ), 'yesno', true ); ?> +Password Reset Email: info_value( UM()->options()->get( 'resetpw_email_on' ), 'yesno', true ); ?> +Password Changed Email: info_value( UM()->options()->get( 'changedpw_email_on' ), 'yesno', true ); ?> +Account Updated Email: info_value( UM()->options()->get( 'changedaccount_email_on' ), 'yesno', true ); ?> +New User Notification: info_value( UM()->options()->get( 'notification_new_user_on' ), 'yesno', true ); ?> +Account Needs Review Notification: info_value( UM()->options()->get( 'notification_review_on' ), 'yesno', true ); ?> +Account Deletion Notification: info_value( UM()->options()->get( 'notification_deletion_on' ), 'yesno', true ); ?> --- UM Total Users --- diff --git a/includes/core/class-fields.php b/includes/core/class-fields.php index 58e70013..fc9ceb04 100644 --- a/includes/core/class-fields.php +++ b/includes/core/class-fields.php @@ -2123,7 +2123,8 @@ if ( ! class_exists( 'um\core\Fields' ) ) { if ( empty( $_um_profile_id ) ) { $_um_profile_id = um_user( 'ID' ); } - if ( ! is_user_logged_in() ) { + + if ( ! is_user_logged_in() && isset( $data['is_block'] ) && 1 === (int) $data['is_block'] ) { $_um_profile_id = 0; } @@ -4234,6 +4235,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $col1_fields = $this->get_fields_in_column( $subrow_fields, 1 ); if ( $col1_fields ) { foreach ( $col1_fields as $key => $data ) { + if ( ! empty( $args['is_block'] ) ) { + $data['is_block'] = 1; + } $output .= $this->edit_field( $key, $data ); } } @@ -4245,6 +4249,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $col1_fields = $this->get_fields_in_column( $subrow_fields, 1 ); if ( $col1_fields ) { foreach ( $col1_fields as $key => $data ) { + if ( ! empty( $args['is_block'] ) ) { + $data['is_block'] = 1; + } $output .= $this->edit_field( $key, $data ); } } @@ -4254,6 +4261,9 @@ if ( ! class_exists( 'um\core\Fields' ) ) { $col2_fields = $this->get_fields_in_column( $subrow_fields, 2 ); if ( $col2_fields ) { foreach ( $col2_fields as $key => $data ) { + if ( ! empty( $args['is_block'] ) ) { + $data['is_block'] = 1; + } $output .= $this->edit_field( $key, $data ); } }