From e2e7aac0efa299122a90a3ff4fa4383d36d8f0d6 Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Mon, 20 Nov 2023 21:55:47 +0200 Subject: [PATCH] - fixed site health PHP notices; --- includes/admin/class-site-health.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/admin/class-site-health.php b/includes/admin/class-site-health.php index 68a64eac..d0a300c1 100644 --- a/includes/admin/class-site-health.php +++ b/includes/admin/class-site-health.php @@ -686,8 +686,9 @@ class Site_Health { 'value' => $tab_enabled ? $labels['yes'] : $labels['no'], ); - if ( ! isset( $tab['default_privacy'] ) ) { - if ( ! empty( $tab_enabled ) ) { + if ( ! isset( $tab['default_privacy'] ) && ! empty( $tab_enabled ) ) { + $privacy = UM()->options()->get( 'profile_tab_' . $id . '_privacy' ); + if ( is_numeric( $privacy ) ) { $appearance_settings[ 'um-profile_tab_' . $id . '_privacy' ] = array( // translators: %s Profile Tab Title 'label' => sprintf( __( 'Who can see %s Tab?', 'ultimate-member' ), $tab['name'] ),