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 );