mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user