From 17906e548568cd83a29da556da3cda214439c7e6 Mon Sep 17 00:00:00 2001 From: Denis Baranov Date: Mon, 27 Nov 2017 12:44:21 +0200 Subject: [PATCH] - fixed generated profile permalink base. --- includes/core/class-permalinks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/core/class-permalinks.php b/includes/core/class-permalinks.php index 5f3ce7e7..f98442d4 100644 --- a/includes/core/class-permalinks.php +++ b/includes/core/class-permalinks.php @@ -391,6 +391,8 @@ if ( ! class_exists( 'Permalinks' ) ) { $permalink_base = um_get_option('permalink_base'); + $full_name = preg_replace( '/\s+/', ' ', $first_name .' '. $last_name); // Remove double spaces + $user_in_url = ''; $full_name = str_replace("'", "", $full_name );