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:
parent
6f44a5461d
commit
873de35f5d
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue