mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix redirection on update profile slug
This commit is contained in:
@@ -255,6 +255,17 @@ class UM_Permalinks {
|
||||
if( $generate_slug && $update_slug == false && $profile_slug ){
|
||||
return $this->profile_permalink( $profile_slug );
|
||||
}
|
||||
|
||||
// Reset cache
|
||||
if( $update_slug == true ){
|
||||
|
||||
$user_id = um_user('ID');
|
||||
|
||||
delete_option( "um_cache_userdata_{$user_id}" );
|
||||
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
}
|
||||
|
||||
// Username
|
||||
if ( $permalink_base == 'user_login' ) {
|
||||
|
||||
Reference in New Issue
Block a user