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
This commit is contained in:
rboren 2004-12-20 06:35:54 +00:00
parent 7727b00596
commit 02ea09c795
1 changed files with 2 additions and 2 deletions

View File

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