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