- fixed profiles tab privacy;

This commit is contained in:
nikitasinelnikov
2019-07-05 13:11:57 +03:00
parent df4f467f02
commit 090588fe88
3 changed files with 75 additions and 65 deletions
+6 -3
View File
@@ -543,11 +543,14 @@ if ( ! class_exists( 'um\Config' ) ) {
add_filter( 'um_get_tabs_from_config', '__return_true' );
$tabs = UM()->profile()->tabs_primary();
$tabs = UM()->profile()->tabs();
foreach ( $tabs as $id => $tab ) {
$this->settings_defaults['profile_tab_' . $id] = 1;
$this->settings_defaults['profile_tab_' . $id . '_privacy'] = 0;
$this->settings_defaults['profile_tab_' . $id . '_roles'] = '';
if ( ! isset( $tab['default_privacy'] ) ) {
$this->settings_defaults['profile_tab_' . $id . '_privacy'] = 0;
$this->settings_defaults['profile_tab_' . $id . '_roles'] = '';
}
}
foreach ( $this->email_notifications as $key => $notification ) {