mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Remove percent signs from slugs. PAtch from MooKitty. Bug 569.
git-svn-id: https://develop.svn.wordpress.org/trunk@1984 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f5a244747e
commit
4dd9d7eebb
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user