small fix to support post-slugs with underscores, required for compatibility with imported MT blogs' older post-slugs
git-svn-id: http://svn.automattic.com/wordpress/trunk@1277 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7e267ea922
commit
ce885b68f3
|
@ -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