Avoid regenerating hash for profile URL on profile update

This commit is contained in:
Champ Camba
2023-09-14 19:54:58 +08:00
parent 26792de205
commit 7ba73aaf35
+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 ) {