Don't redirect searchs if browsing paged results.

git-svn-id: http://svn.automattic.com/wordpress/trunk@761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-01-12 11:59:14 +00:00
parent 6f44a5461d
commit 873de35f5d
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}