From 8bf2144a679582cf539f6ef2c8d4e87c7429d1d7 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 31 Oct 2003 14:19:26 +0000 Subject: [PATCH] Sanitize_title shouldn't strip existing hypens. git-svn-id: http://svn.automattic.com/wordpress/trunk@505 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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);