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:
michelvaldrighi 2004-05-14 12:33:12 +00:00
parent 7e267ea922
commit ce885b68f3

View File

@ -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'";
}