From ce885b68f3d6343d58fe993a117d46143e6fb777 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Fri, 14 May 2004 12:33:12 +0000 Subject: [PATCH] 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 --- wp-blog-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-blog-header.php b/wp-blog-header.php index 6513ae11bd..d1c2a1f2b1 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -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'"; }