- fixed user permalinks for profile page;

This commit is contained in:
nikitozzzzzzz
2018-03-07 10:58:58 +02:00
parent 3ba053dc16
commit 179fc36ebf
4 changed files with 23 additions and 8 deletions
+3 -3
View File
@@ -229,12 +229,12 @@ if ( ! class_exists( 'Rewrite' ) ) {
$query = UM()->permalinks()->get_query_array();
$url = um_user_profile_url();
if ( empty( $url ) ) {
$url = um_user_profile_url( um_user( 'ID' ) );
/*if ( empty( $url ) ) {
//if empty profile slug - generate it and re-get profile URL
UM()->user()->generate_profile_slug( um_user( 'ID' ) );
$url = um_user_profile_url();
}
}*/
if ( $query ) {
foreach ( $query as $key => $val ) {