fix for multiple hypens.

git-svn-id: https://develop.svn.wordpress.org/trunk@774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-14 05:40:57 +00:00
parent 80cc201c56
commit 07604037d0
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;
}