From 2a39bceb03c952749eb7d1df2bd9d1f1b5acb80b Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 31 Oct 2003 14:19:26 +0000 Subject: [PATCH] Sanitize_title shouldn't strip existing hypens. git-svn-id: https://develop.svn.wordpress.org/trunk@505 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);