small fix to support post-slugs with underscores, required for compatibility with imported MT blogs' older post-slugs
git-svn-id: https://develop.svn.wordpress.org/trunk@1277 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
772caaa690
commit
1138540453
|
@ -180,7 +180,7 @@ if ('' != $day) {
|
|||
}
|
||||
|
||||
if ('' != $name) {
|
||||
$name = preg_replace('/[^a-z0-9-]/', '', $name);
|
||||
$name = preg_replace('/[^a-z0-9-_]/', '', $name);
|
||||
$where .= " AND post_name = '$name'";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue