If there is one hit on a search redirect to that post's permalink.
git-svn-id: http://svn.automattic.com/wordpress/trunk@493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ca18240a96
commit
34483fbd59
|
@ -307,5 +307,8 @@ $posts = $wpdb->get_results($request);
|
|||
|
||||
if (1 == count($posts)) {
|
||||
$more = 1; $c = 1; $single = 1;
|
||||
if ($s) { // If they were doing a search and got one result
|
||||
header('Location: ' . get_permalink($posts[0]->ID));
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue