From c64513ba223d35683d570053bd824a199949a89a Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 17 Apr 2009 03:28:55 +0000 Subject: [PATCH] Dots in post slugs should be dashed, not dropped. props Denis-de-Bernardy. fixes #9489 git-svn-id: http://svn.automattic.com/wordpress/trunk@10977 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index d40814275..98d258bc0 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -676,6 +676,7 @@ function sanitize_title_with_dashes($title) { $title = strtolower($title); $title = preg_replace('/&.+?;/', '', $title); // kill entities + $title = str_replace('.', '-', $title); $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); $title = preg_replace('/\s+/', '-', $title); $title = preg_replace('|-+|', '-', $title);