mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
fix for multiple hypens.
git-svn-id: https://develop.svn.wordpress.org/trunk@774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
80cc201c56
commit
07604037d0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user