From 02ea09c79533ad286c18f017f15474943cefd7ec Mon Sep 17 00:00:00 2001 From: rboren Date: Mon, 20 Dec 2004 06:35:54 +0000 Subject: [PATCH] Remove percent signs from slugs. PAtch from MooKitty. Bug 569. git-svn-id: http://svn.automattic.com/wordpress/trunk@1984 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-formatting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 95fa576cc9..ff0da469ca 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -227,7 +227,7 @@ function sanitize_title_with_dashes($title) { $title = strtolower($title); $title = preg_replace('/&.+?;/', '', $title); // kill entities - $title = preg_replace('/[^%a-z0-9 _-]/', '', $title); + $title = preg_replace('/[^a-z0-9 _-]/', '', $title); $title = preg_replace('/\s+/', '-', $title); $title = preg_replace('|-+|', '-', $title); $title = trim($title, '-'); @@ -573,4 +573,4 @@ function human_time_diff( $from, $to = '' ) { return $since; } -?> \ No newline at end of file +?>