- 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
@@ -286,13 +286,6 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
if ( function_exists( 'icl_get_current_language' ) && icl_get_current_language() != icl_get_default_language() ) {
$url = $this->get_url_for_language( UM()->config()->permalinks[ $slug ], icl_get_current_language() );
/*if ( get_post_meta( get_the_ID(), '_um_wpml_account', true ) == 1 ) {
$url = get_permalink( get_the_ID() );
}
if ( get_post_meta( get_the_ID(), '_um_wpml_user', true ) == 1 ) {
$url = $this->get_url_for_language( UM()->config()->permalinks[ $slug ], icl_get_current_language() );
}*/
if ( $updated ) {
$url = add_query_arg( 'updated', esc_attr( $updated ), $url );
}