From 5c4302e582af5531fc0ac7957ed399b523731043 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 14 Jan 2004 05:40:57 +0000 Subject: [PATCH] fix for multiple hypens. git-svn-id: http://svn.automattic.com/wordpress/trunk@774 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c795cc441..c8f4b10cc 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -93,6 +93,7 @@ function sanitize_title($title) { $title = preg_replace('/\s+/', ' ', $title); $title = trim($title); $title = str_replace(' ', '-', $title); + $title = preg_replace('|[-]+|', '-', $title); return $title; }