diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 2687fbf8d6..d0c05fd891 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -89,7 +89,7 @@ function wpautop($pee, $br=1) { function sanitize_title($title) { $title = strtolower($title); $title = preg_replace('/&.+;/', '', $title); // kill entities - $title = preg_replace('/[^a-z0-9 ]/', '', $title); + $title = preg_replace('/[^a-z0-9 -]/', '', $title); $title = preg_replace('/\s+/', ' ', $title); $title = trim($title); $title = str_replace(' ', '-', $title);