From 3e5a1df86ccbe99dbe06b3c90d0eba379dacd142 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Fri, 17 Feb 2017 18:45:06 +0800 Subject: [PATCH] Fix profile slug in permalink --- core/um-permalinks.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/um-permalinks.php b/core/um-permalinks.php index 1ec339a3..a0b6c229 100644 --- a/core/um-permalinks.php +++ b/core/um-permalinks.php @@ -391,6 +391,10 @@ class UM_Permalinks { $user_in_url = ''; + $full_name = str_replace("'", "", $full_name ); + $full_name = str_replace("&", "", $full_name ); + $full_name = str_replace("/", "", $full_name ); + switch( $permalink_base ) { case 'name': // dotted