mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge pull request #1303 from ultimatemember/fix/hash-profile-slug-generation
Avoid regenerating hash for profile URL on profile update
This commit is contained in:
@@ -790,7 +790,11 @@ if ( ! class_exists( 'um\core\User' ) ) {
|
||||
}
|
||||
|
||||
if ( 'hash' === $permalink_base ) {
|
||||
$user_in_url = $this->generate_user_hash( $user_id );
|
||||
if ( empty( $current_profile_slug ) ) {
|
||||
$user_in_url = $this->generate_user_hash( $user_id );
|
||||
} else {
|
||||
$user_in_url = $current_profile_slug;
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'custom_meta' === $permalink_base ) {
|
||||
|
||||
Reference in New Issue
Block a user