Dots in post slugs should be dashed, not dropped. props Denis-de-Bernardy. fixes #9489
git-svn-id: https://develop.svn.wordpress.org/trunk@10977 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
be9ea84d5c
commit
b190328260
@ -676,6 +676,7 @@ function sanitize_title_with_dashes($title) {
|
||||
|
||||
$title = strtolower($title);
|
||||
$title = preg_replace('/&.+?;/', '', $title); // kill entities
|
||||
$title = str_replace('.', '-', $title);
|
||||
$title = preg_replace('/[^%a-z0-9 _-]/', '', $title);
|
||||
$title = preg_replace('/\s+/', '-', $title);
|
||||
$title = preg_replace('|-+|', '-', $title);
|
||||
|
Loading…
Reference in New Issue
Block a user