mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 12:43:33 +09:00
- fixed user permalinks for profile page;
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user