From 68620d2c3f111f8c48e7b15341dac03f653a9c9c Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 12 Jan 2004 11:59:14 +0000 Subject: [PATCH] Don't redirect searchs if browsing paged results. git-svn-id: https://develop.svn.wordpress.org/trunk@761 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 5a59f0160b..2975aa4cbf 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)); } }