Don't redirect searchs if browsing paged results.

git-svn-id: https://develop.svn.wordpress.org/trunk@761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-12 11:59:14 +00:00
parent b85d61310e
commit 68620d2c3f
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));
}
}