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:
parent
b85d61310e
commit
68620d2c3f
@ -355,7 +355,7 @@ if ($posts) {
|
|||||||
$c = 1;
|
$c = 1;
|
||||||
$single = 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));
|
header('Location: ' . get_permalink($posts[0]->ID));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user