- fixed loop in profile tabs init;

- fixed order by display name;
This commit is contained in:
nikitasinelnikov
2019-06-10 15:31:37 +03:00
parent 572f47033f
commit 41a9bd4be4
3 changed files with 6 additions and 24 deletions
+4
View File
@@ -1,8 +1,10 @@
<?php
namespace um;
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! class_exists( 'um\Config' ) ) {
@@ -539,6 +541,8 @@ if ( ! class_exists( 'um\Config' ) ) {
'rest_api_version' => '2.0'
);
add_filter( 'um_get_tabs_from_config', '__return_true' );
$tabs = UM()->profile()->tabs_primary();
foreach ( $tabs as $id => $tab ) {
$this->settings_defaults['profile_tab_' . $id] = 1;