mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +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 ) {
|
||||
|
||||
@@ -456,7 +456,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
do_action( 'um_update_profile_full_name', um_user( 'ID' ), $to_update );
|
||||
|
||||
if ( ! isset( $args['is_signup'] ) ) {
|
||||
$url = UM()->user()->get_profile_link( um_user( 'ID' ) );
|
||||
|
||||
$url = um_user_profile_url( um_user( 'ID' ) );
|
||||
exit( wp_redirect( um_edit_my_profile_cancel_uri( $url ) ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user