fix for multiple hypens.

git-svn-id: http://svn.automattic.com/wordpress/trunk@774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-14 05:40:57 +00:00
parent e2d9617bd6
commit 5c4302e582
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}