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:
Mykyta Synelnikov
2023-09-15 01:26:51 +03:00
committed by GitHub
+5 -1
View File
@@ -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 ) {