From 873de35f5d87e4be8055912fe1e231f82813f168 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Mon, 12 Jan 2004 11:59:14 +0000 Subject: [PATCH] Don't redirect searchs if browsing paged results. git-svn-id: http://svn.automattic.com/wordpress/trunk@761 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 5a59f0160..2975aa4cb 100644 --- a/wp-blog-header.php +++ b/wp-blog-header.php @@ -355,7 +355,7 @@ if ($posts) { $c = 1; $single = 1; } - if ($s) { // If they were doing a search and got one result + if ($s && empty($paged)) { // If they were doing a search and got one result header('Location: ' . get_permalink($posts[0]->ID)); } }