From 07604037d0c2e4e603b54813208de418f7a4141e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 14 Jan 2004 05:40:57 +0000 Subject: [PATCH] fix for multiple hypens. git-svn-id: https://develop.svn.wordpress.org/trunk@774 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index c795cc4413..c8f4b10ccf 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; }